]> granicus.if.org Git - docbook-dsssl/commitdiff
Handling of @entityref added back
authorJirka Kosek <jirka@kosek.cz>
Sat, 22 Apr 2006 10:08:50 +0000 (10:08 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sat, 22 Apr 2006 10:08:50 +0000 (10:08 +0000)
xsl/profiling/profile-mode.xsl

index 49f4c5dfdd2f1a8d9df3d6f67961160abb9526ee..4d549e1893439abea4e76f227c6a44e563e68ec5 100644 (file)
     <xsl:copy>
       <xsl:copy-of select="@*"/>
 
+      <!-- Entity references must be replaced with filereferences for temporary tree -->
+      <xsl:if test="@entityref and $profile.baseuri.fixup">
+       <xsl:attribute name="fileref">
+         <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
+       </xsl:attribute>
+      </xsl:if>
+
       <!-- xml:base is eventually added to the root element -->
       <xsl:if test="not(../..) and $profile.baseuri.fixup">
        <xsl:call-template name="add-xml-base"/>