]> granicus.if.org Git - docbook-dsssl/commitdiff
Adjusted xsl2jref to copy over any attributes on source
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 12 Jul 2007 03:14:49 +0000 (03:14 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 12 Jul 2007 03:14:49 +0000 (03:14 +0000)
doc:reference instances (primarily embedded doc for params) and to
also copy any PIs that are children of doc:reference.
That ensures that any id/xml:id attributes get copied over -- so
that they can be used when use.id.as.filename is on -- and that
any dbhtml@dir and dbhtml@filename PIs can be used for moving
files into the correct subdirs and are output with right names.

xsl/tools/xsl/build/xsl2jref.xsl

index a0e009da7a6c2f55ce52c44664d0c22c60b7be8e..53f99f2fbfad1f99b0d3ee805c2c4cf9098e0c43 100644 (file)
@@ -94,6 +94,8 @@
   <xsl:choose>
     <xsl:when test="doc:reference">
       <reference>
+        <xsl:copy-of select="doc:reference/@*"/>
+        <xsl:copy-of select="doc:reference/processing-instruction()"/>
         <xsl:apply-templates/>
       </reference>
       <xsl:text>&#10;</xsl:text>