Re[2]: transforming one specific subtree only

Subject: Re[2]: transforming one specific subtree only
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 8 Nov 2000 09:49:37 +0000
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


Current Thread