<xsl:variable name="filename">
<xsl:choose>
<xsl:when test="$data[@fileref]">
- <xsl:value-of select="$data/@fileref"/>
+ <xsl:apply-templates select="$data/@fileref"/>
</xsl:when>
<xsl:when test="$data[@entityref]">
<xsl:value-of select="unparsed-entity-uri($data/@entityref)"/>
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="@fileref"/>
+ <xsl:apply-templates select="@fileref"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="@fileref"/>
+ <xsl:apply-templates select="@fileref"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="@fileref"/>
+ <xsl:apply-templates select="@fileref"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="@fileref"/>
+ <xsl:apply-templates select="@fileref"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>