XSL and Referencing Entities
I am trying to create an XSL stylesheet to display XML documents in browsers as HTML.
My graphic URIs are stored in entities (see below).
<!ENTITY graphic1 SYSTEM "\\test\supportknowledgebase\images\KB-01940_1.jpg" NDATA jpeg>
<!ENTITY graphic2 SYSTEM "\\test\supportknowledgebase\images\KB-01940_2.jpg" NDATA jpeg>
<!ENTITY graphic3 SYSTEM "\\test\supportknowledgebase\images\KB-01940_3.jpg" NDATA jpeg>
<Graphic entityref = "graphic1"/>
How would I get the URI from the entity to my XSL template(see below):
<xsl:template match="Graphic">
<img src="?????" alt="{@alt}" />
</xsl:template>
Can anyone help?
Thanks
|