xsl-list
[Top] [All Lists]

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

2007-03-27 07:37:07

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--