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

Subject: RE: [xsl] What's wrong with my ancestor syntax?
From: "Austin, Darrel" <Darrel.Austin@xxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Mar 2007 10:07:54 -0500
> 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">

Umm...apparently the xpath you posted previously that I missed. ;o)

YES! That works, though I don't quite understand the syntax.

I think it says:

Select any menuItem (//menuItem)
That has a pageID of x ([pageID = $pageID])
And is or is a descendant of said page (/descendant-or-self::menuItem)

Did I get that about right? It's the last part that I don't fully
understand.

-Darrel

Current Thread