xsl-list
[Top] [All Lists]

RE: String manipulations with quotes

2003-04-10 14:58:39
Here is a table I put together for reserved symbols.  The semicolon
afterwards is required
Char    String
------- ----------
&       &
<       &lt;
      &gt;
'       &apos;
"       &quot;

-----Original Message-----
From: Betty Harvey [mailto:harvey(_at_)eccnet(_dot_)com] 
Sent: Thursday, April 10, 2003 3:53 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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



<Prev in Thread] Current Thread [Next in Thread>