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

Re: Keep it simple S...

Subject: Re: Keep it simple S...
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 12 Dec 2001 14:28:27 -0700 (MST)
keep it simple trademark
Jarno.Elovirta@xxxxxxxxx wrote:
> <xsl:if test="contains($getit, '&quot;')">

Sometimes even that's not enough.
For example, you can't have

  <xsl:if test="contains($getit, '&apos;')">

because the XPath expression is unparseable, even though
the attribute is. For those circumstances, define

<xsl:variable name="q">'</xsl:variable>
<xsl:variable name="qq">"</xsl:variable>

and reference $q or $qq where needed.

Example:

<xsl:value-of select="concat('he said, ',$qq,'don',$q,'t worry.',$qq)"/>

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 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.