Subject: RE: [xsl] String manipulations with quotes From: "Nagai, Paul" <pnagai@xxxxxxxxxxx> Date: Thu, 10 Apr 2003 15:12:24 -0700 |
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: – – — — ‘ ‘ ’ ’ “ “ ” ” … … ™ ™ ♦ ♦ ✓ ✓ You may need to find the hex or decimal equivalent for ". ------ Paul Nagai -----Original Message----- From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx] Sent: Thursday, April 10, 2003 3:02 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] 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, '"')"/> </xsl:variable> BTW you could write this as <xsl:variable name="name1" select="substring-after($definition, '"')"/> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] String manipulations with, Michael Kay | Thread | RE: [xsl] String manipulations with, David Carlisle |
Re: [xsl] Push/pull, Wendell Piez | Date | Re: [xsl] How to render TEI <div*>s, Wendell Piez |
Month |