[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Thanks you David,
I actually thought about using a key for this, but I give it up because I thought keys were supposed to be used within the same document...
But it doesn't seems so : I didn't know about this 3rd optional agrument in key() function !
I use Saxon as XSLT engine.
Thanks a lot David
Matthieu.
Re: [xsl] can a function return an element of a nodeset
Subject: Re: [xsl] can a function return an element of a nodeset From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Thu, 13 Jan 2011 17:37:38 +0100 |
Thanks you David,
I actually thought about using a key for this, but I give it up because I thought keys were supposed to be used within the same document...
But it doesn't seems so : I didn't know about this 3rd optional agrument in key() function !
I use Saxon as XSLT engine.
Thanks a lot David
Matthieu.
you could also do
key('id','123',doc('foo.xml'))
if you have a key set up as
<xsl:key name="id" match="*[@id]" use="@id"/>
using a key is probably quicker than using //*[@id=...] unless your xslt engine compiles them both to the same thing.
David
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] can a function return an , David Carlisle | Thread | [xsl] Inverse of apply-template sel, russurquhart1 |
Re: [xsl] can a function return an , David Carlisle | Date | [xsl] Inverse of apply-template sel, russurquhart1 |
Month |
Keywords