]> granicus.if.org Git - docbook-dsssl/commitdiff
Made the following changed in the mode="hyphenate.verbatim" template:
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 01:30:15 +0000 (01:30 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 4 Jul 2007 01:30:15 +0000 (01:30 +0000)
  -    <xsl:apply-templates select="node()|@*" mode="hyphenate.verbatim"/>
  +    <xsl:copy-of select="@*"/>
  +    <xsl:apply-templates mode="hyphenate.verbatim"/>
...because as was it caused xsltproc to raise a fatal "Attribute
nodes must be added before any child nodes to an element." (though
not saxon)

xsl/fo/verbatim.xsl

index 2286c1b6f12219339bbfcbe7e4a0ced707cec4ca..56b4240c17b95d039306d18bcb3c0987a62f8b39 100644 (file)
 
 <xsl:template match="node()|@*" mode="hyphenate.verbatim">
   <xsl:copy>
-    <xsl:apply-templates select="node()|@*" mode="hyphenate.verbatim"/>
+    <xsl:copy-of select="@*"/>
+    <xsl:apply-templates mode="hyphenate.verbatim"/>
   </xsl:copy>
 </xsl:template>