[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] What's wrong with my ancestor syntax?


Subject: Re: [xsl] What's wrong with my ancestor syntax?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Mar 2007 15:36:48 +0100

>I think, in english, I want to say "grab every menuItem that has a
>pageID of 938 or is a child of a menuItem with a pageID of 938"

which is the  xpath I posted previously isn't it?

<xsl:variable name="$pageID" select="938"/>

	<xsl:for-each select="//menuItem[pageID = 
 $pageID]/descendant-or-self::menuItem"> 

David


Current Thread
Keywords