[xsl] Problem with Entities

Subject: [xsl] Problem with Entities
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Wed, 31 Jan 2007 17:28:21 +0800
I have this entity declaration in my dtd:
<!ENTITY V1p93 SYSTEM "V1p93.jpg" NDATA JPEG>

an input xml of:
<figure entity="V1p93"/>

And run it through this xslt expression:
<xsl:template match="figure">
<fo:external-graphic src="url(&quot;{@entity}&quot;)"/>
</xsl:template>

I was expecting that the output would be like this
<fo:external-graphic src="url(&#34;V1p93.jpg&#34;)"/>

but the ouput i got was:
<fo:external-graphic src="url(&#34;V1p93&#34;)"/>

it seems that the entity was not resolved.

I'm using xslt 2.0 and saxon.
--
*Jeff Sese*

Current Thread