xsl-list
[Top] [All Lists]

[xsl] Problem with Entities

2007-01-31 02:28:51
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;{(_at_)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*


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>