This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Attributes and entity references
- To: XSL-List at mulberrytech dot com
- Subject: Attributes and entity references
- From: Norbert Hranitzky <norbert dot hranitzky at mchp dot siemens dot de>
- Date: Wed, 08 Nov 2000 16:36:13 +0100
- Organization: Siemens AG
- Reply-To: xsl-list at mulberrytech dot com
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