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

RE: String manipulations with quotes

Subject: RE: String manipulations with quotes
From: "Nagai, Paul" <pnagai@xxxxxxxxxxx>
Date: Thu, 10 Apr 2003 15:12:24 -0700
string manipulations in xsl
You may need to search for either the decimal entity or hex entity depending
on a variety of mysterious (to me) factors. We search on decimals. Here are
the ones have to look for:

&ndash;	&#8211;
&mdash;	&#8212;
&lsquo;	&#8216;
&rsquo;	&#8217;
&ldquo;	&#8220;
&rdquo;	&#8221;
&mldr;	&#8230;
&trade;	&#8482;
&diams;	&#9830;
&check;	&#10003;

You may need to find the hex or decimal equivalent for &quot;.
------
Paul Nagai


-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
Sent: Thursday, April 10, 2003 3:02 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  String manipulations with quotes


Betty Harvey wrote:
> I am trying to grab text within quotes.  XSLT is not being cooperative.  
> Does anyone have any tricks to grab the quote. I would expect it would see
> the double quote in the single quote as 'text' and not a delimiter.  
> However, it sees it as a closing quote. I tried the 'old vi backslash
> trick'but it didn't work.

There is no backslash escaping in XML/XPath.
Try
  <xsl:variable name="name1">
       <xsl:value-of select="substring-after ($definition, '&quot;')"/>
  </xsl:variable>

BTW you could write this as
  <xsl:variable name="name1" select="substring-after($definition,
'&quot;')"/>



J.Pietschmann


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 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.