xsl-list
[Top] [All Lists]

Re: String manipulations with quotes

2003-04-10 15:39:15
Betty,

This is because it's the parser, not the XSLT processor, that's confused by the literal quote. But I think you've probably seen that now. :->

At 06:02 PM 4/10/2003, J.Pietschmann wrote:
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;')"/>


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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



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