Subject: Re: [xsl] XPath context evaluation From: Victor Toni <xsl-list@xxxxxxxxx> Date: Sat, 13 May 2006 01:09:54 +0200 |
In the meantime I found a nearly trivial solution which lets my keep my
environment:
"subsequence(//info,index-of(//info/id, .), 1)"
These functions were easy to implement and solved the issue I had. Since performance doesn't count for this use case I am glad it works :-)
This isn't 100% equivalent to //info[id = current()], unless you make
assumptions about the data, for example that there is no more than one
match.
But if you're using XPath 2.0, then what's wrong with
for $x in . return //info[id = $x]
(which is equivalent: in fact it's essentially what Saxon compiles the
original code into)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath context evaluation, Michael Kay | Thread | [xsl] generic grid, viniciuscamara |
Re: [xsl] Filename of XML file, G. Ken Holman | Date | RE: [xsl] Isolating specific elemen, cknell |
Month |