|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Attributes and entity references
I have the following XSLT problem/question:
An XSLT stylesheet transforms an XML document into
another XML document, which contains internal entity
references. Now my question:
How can I generate an entity reference as value of
an output attribute? I tried the following (my entity
reference is &MR;
...
1.)
XSLT: <elt attr="&MR;"/>
the output is <elt attr="&MR;" />
2.) XSLT:
<elt>
<xsl:attribute name="attr">
<xsl:text disable-output-escaping="yes">&MR;</xsl:text>
</xsl:attribute>
</elt>
the output is <elt attr="&MR;" />
3.) XSLT:
<elt attr="&#38;MR;" />
the output is <elt attr="&#38;MR;">
But I need the output: <elt attr="&MR;"/>
Thanks in advance,
Norbert
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








