[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: Betty Harvey <harvey@xxxxxxxxxx>
Date: Thu, 10 Apr 2003 18:21:42 -0400 (EDT)
xsl string quotes
I don't have control over the authoring.  The quotes are already
embedded in the file.  I can't change all the " to the character
entity because it would change them all.   I could bring the file
into XMetal and convert the quotes with a global find and replace.
However, the file is 8 megabytes long.  I could probably do this
and start the search and replace this evening and maybe it will
be finished in the morning |-).

It just seems like this should be doable in XSLT.

Betty

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830 
Electronic Commerce Connection, Inc. |        
harvey@xxxxxxxxxx                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/  

On Thu, 10 Apr 2003, David Christiansen wrote:

> Here is a table I put together for reserved symbols.  The semicolon
> afterwards is required
> Char	String
> -------	----------
> &	&amp;
> <	&lt;
> >	&gt;
> '	&apos;
> "	&quot;
> 
> -----Original Message-----
> From: Betty Harvey [mailto:harvey@xxxxxxxxxx] 
> Sent: Thursday, April 10, 2003 3:53 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  String manipulations with quotes
> 
> 
> 
> 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.  If it helps, here is my 'snippet'.
> 
> <xsl:variable name="name1">
>      <xsl:value-of select="substring-after ($definition, '"')"/>
> </xsl:variable>
> <xsl:variable name="name2">
>      <xsl:value-of select="substring-before ($name1,  '"')"/>
> </xsl:variable>
> 
> TIA.
> 
> Betty
> 
>  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.