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 |
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 |