xsl-list
[Top] [All Lists]

Re: [xsl] Confused using a loop...

2007-03-28 08:13:14



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() &lt;=
$numberOfItemsToList]"
You don't sort these at all.

I don't think you want that inner for-each at all do you?

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>
--~--