> 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 |
|
Message not available
|
|