|
Subject: Attributes and entity references From: Norbert Hranitzky <norbert.hranitzky@xxxxxxxxxxxxxxx> Date: Wed, 08 Nov 2000 16:36:13 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Matching Text that may have whi, Kay Michael | Thread | Re: Attributes and entity reference, David Carlisle |
| RE: Matching Text that may have whi, Bassi Suk | Date | Re: topological sort, Peter B. West |
| Month |