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

Re: Translating "("

Subject: Re: Translating "("
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Mon, 15 Nov 2004 16:52:53 +0100
xslt apos
now to get that expression into a select attrbute. As far as XML is
concerned it's all just an opaque string, that has three " and five '
so if you are using " to delimit the attrinute you need to &quot; the
occurrences of " in the attribute value

select="translate(normalize-space(ln:term),
   concat(&quot;'&#160;/()&quot;,'&quot;')
   '_')"

David

And if your parser still gets confused, or all the quotes are turning before your eyes, just use two variables like:


   <xsl:variable name="apos">&apos;</xsl:variable>
   <xsl:variable name="quot">&quot;</xsl:variable>

Though, as discussed recently on this list, this creates document tree fragments rather than strings in XSLT 1. (Not that you would notice much about that..)

Grtz,
Geert

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.