]> granicus.if.org Git - docbook-dsssl/commitdiff
Doh! If I only had a nickel for every time I made the mistake of
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 13 Mar 2006 14:29:43 +0000 (14:29 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 13 Mar 2006 14:29:43 +0000 (14:29 +0000)
checking for plain following-sibling instead of *first* following
sibling, I would have enough money to buy... something.

xsl/manpages/utility.xsl

index 65433aa673c7f0759e4b9666cdfd5e0e96ca7be9..28643f455aebfcda722c687333833d3ad8df8f10 100644 (file)
           <xsl:if
               test="(translate(substring(., string-length(.), 1),'&#9;&#10;&#13; ','    ')  = ' '
                     and following-sibling::node()[1][name(.)!=''])
-                    or following-sibling::comment()
-                    or following-sibling::processing-instruction()
+                    or following-sibling::node()[1][self::comment()]
+                    or following-sibling::node()[1][self::processing-instruction()]
                     ">
             <xsl:if test="normalize-space($content) != ''
                           or concat(normalize-space($content), ' ') = ' '">