Subject: Re: [xsl] Confused using a loop... From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 28 Mar 2007 16:12:59 +0100 |
xsl:for-each select="//menuItem[pageID = $pageID]/descendant-or-self::menuItem"> That selects a bunch of menu items which may be descendents of each other) These were the menu items that you want to process, but you don't process them, just their children (if they have menuItem children) for each of those you then select $numberOfItemsToList child menuitems <xsl:for-each select="menuItem[position() <= $numberOfItemsToList]" You don't sort these at all. I don't think you want that inner for-each at all do you? David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Confused using a loop..., Austin, Darrel | Thread | RE: [xsl] Confused using a loop..., Austin, Darrel |
Re: [xsl] Confused using a loop..., David Carlisle | Date | [xsl] XSLT parsers in a C/C++ Apach, Sam Carleton |
Month |