Subject: Re: [xsl] Beginning an XPath expression with a function call? From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Fri, 07 Mar 2003 19:40:32 +0200 |
Given an XPath expression (for example //foo/foo2) that works for a given xml, I would like to use the substring-before function, to keep only the characters in //foo/foo2 before '-'. The XPath would then become substring-before(//foo/foo2, '-')
It seems that both XPath 1.0 specs, MSXML 4, Saxon 7.4 and XalanJ 2.5 refuse such construction (e.g. having a function call as root of an XPath expression). Note that it works with Xalan C++ 1.4. Should it, or not, regarding the specs?
You can use function call as first part of of the path expression, day-to-day example is document('foo.xml')/*//bar like expressions or $foo/bar expressions.Do you know if there is a simple "legal" XPath-only-based solution to achieve the same result?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Beginning an XPath expression, Monier, Yves | Thread | RE: [xsl] Beginning an XPath expres, Michael Kay |
[xsl] Order which templates apply, Karl Stubsjoen | Date | RE: [xsl] Aberrant Alphabetizing., Michael Kay |
Month |