Attributes and entity references

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;

    XSLT: <elt attr="&amp;MR;"/>
    the output is <elt attr="&amp;MR;" />

2.) XSLT:
 <xsl:attribute name="attr">
  <xsl:text disable-output-escaping="yes">&amp;MR;</xsl:text>

the output is  <elt attr="&amp;MR;" />

3.) XSLT:
   <elt attr="&amp;#38;MR;" />

the output is <elt attr="&amp;#38;MR;">

But I need the output: <elt attr="&MR;"/>

Thanks in advance,

 XSL-List info and archive:

Current Thread