[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How to select for ' in XPATH?


Subject: Re: [xsl] How to select for ' in XPATH?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 05 Aug 2009 19:11:06 +0200

Hermann Stamm-Wilbrandt wrote:

$ xpath "/*/*/*[contains(normalize-space(.),'\'')]" <tst.html
Exception running: xpath
net.sf.saxon.s9api.SaxonApiException: XPath syntax error at char 34 in
{...ontains(normalize-space(.),...}:
    Unmatched quote in expression

I think in XPath 2.0 you can double quotes e.g. xpath "/*/*/*[contains(normalize-space(.),'''')]" <tst.html

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread
Keywords