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 numérique
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--