This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Ampersand
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Ampersand
- From: "Carmelo Montanez" <carmelo at nist dot gov>
- Date: Mon, 16 Jul 2001 18:32:17 -0400
- Organization: NIST
- References: <NABBLNLEFKJBBIBELMLOOEMGNMAA.Chris@Bayes.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi All:
I have an ampersand question with a slight twist to it, consider
the following piece of pseudo-code fow which I am intending
to get "&" (and some other stuff, but the "&" is the tricky one)
out of:
... XSL STUFF ...
<xsl:attribute-set name = "foProperties1">
<xsl:attribute name = "character"><xsl:text
disable-output-escaping="yes">&some Value</xsl:text></xsl:attribute>
</xsl:attribute-set>
..... XSL STUFF .....
<fo:character xsl:use-attribute-sets = "foProperties1">
... MORE XSL STUFF ...
However what I actually get is "&" when running the transformation
instead of "&" as intended, is that because the "xsl:text" is inside the
"<xsl:attribute>" statement?, When I use the same "xsl:text" statement
outside
the "xsl:attribute", I get the "&" as expected, any one aware of how to
go about getting the "&" inside the "xsl:attribute"?
My final goal is to end up with an FO statement that will look
like this:
<fo:character character = "&someValue;"/>
I tried using CDATA instead of "xsl:text" but ran into the same
situation. Any ideas will be great.
Thanks,
Carmelo Montanez
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list