]> granicus.if.org Git - docbook-dsssl/commitdiff
fix issue #28 assemble.xsl: imagedata filerefs in assembled output document may be...
authorbobstayton <bobs@sagehill.net>
Wed, 11 Jul 2018 19:01:34 +0000 (12:01 -0700)
committerbobstayton <bobs@sagehill.net>
Wed, 11 Jul 2018 19:27:42 +0000 (12:27 -0700)
xsl/assembly/assemble.xsl

index a244520f9cd2be3aa2368da4dd789130170537f7..7ee9a4a306fc207a88e1ea4ad7365497994759dc 100644 (file)
           <!-- must use for-each to set context node for xsl:copy -->
           <xsl:for-each select="$ref.content">
             <xsl:copy>
+              <xsl:attribute name="xml:base">
+                <xsl:value-of select="$fileref"/>
+              </xsl:attribute>
               <xsl:copy-of select="@*[not(name() = 'xml:id')]"/>
               <xsl:choose>
                 <!-- Use the module's xml:id if it has one -->
         <xsl:otherwise>
           <!-- create the element instead of copying it -->
           <xsl:element name="{$element.name}" namespace="http://docbook.org/ns/docbook">
+            <xsl:attribute name="xml:base">
+              <xsl:value-of select="$fileref"/>
+            </xsl:attribute>
             <xsl:copy-of select="$ref.content/@*[not(name() = 'xml:id')]"/>
             <xsl:choose>
               <!-- Use the module's xml:id if it has one -->