Re: [xsl] Recursion (I think)

Subject: Re: [xsl] Recursion (I think)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 26 Sep 2005 11:59:19 +0100
> How do you do that if you don't know how far back up the tree they are?

ancestor-or-self::*[@id][1]/@id

selects the nearest id attribute.

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
________________________________________________________________________

Current Thread