[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Ampersand

Subject: Ampersand
From: "Carmelo Montanez" <carmelo@xxxxxxxx>
Date: Mon, 16 Jul 2001 18:32:17 -0400
xsl ampersand
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">&amp;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 "&amp;" 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.