This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: transforming one specific subtree only
- To: Jakob <jakob at free dot fr>
- Subject: Re[2]: transforming one specific subtree only
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Wed, 8 Nov 2000 09:49:37 +0000
- CC: xsl-list at mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <200011072135.OAA81063@skew.org><973634504.3a087bc88187e@imp.free.fr>
- Reply-To: xsl-list at mulberrytech dot com
Jakob,
> Probably extremely inefficient due to the //*; and, no, the
> processor I am using, Sablotron doesn't support id(), ahem.
Does it support key()? If so, then you could declare a key for
accessing the @ids:
<xsl:key name="ids" match="*[@id]" use="@id" />
And retrieve elements with that particular id using:
key('ids', $nodeId)
instead of:
//*[@id = $nodeId]
which would be more efficient.
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list