xsl-list
[Top] [All Lists]

Re: Specify/determine element's "logical" parent

2004-09-23 13:58:17

then somehow map the ID to an actual node; doe

If your id attributes are declared to be of type ID in a DTD this is
simply

select="id(@parentid)"

If they arenot so declared use a key instead

<xsl:key name="ids" match="*[(_at_)id]" use="@id"/>
...

select="key('ids',@parentid)"

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________