[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: Key and/or grouping questions.

Subject: RE: Re: Key and/or grouping questions.
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 6 Dec 2002 09:42:56 -0000
RE:  Re: Key and/or grouping questions.
> > I think a better approach would be to restructure your code 
> to use the
> > usual:
> > 
> > <xsl:for-each select="xx[position() mod $size = 1]">
> >   ..
> >   <xsl:for-each select=".|following-sibling[position() 
> &lt;= $size]">
> 
> Trying something similar to the nested for-each, excpet my 
> outer for-each is somthing similar to the following: 
> 
>    <xsl:for-each select="xx[position() = $startPos]">
> 
> I get the line at the starting postion just fine, but I get 
> none of the following-sibling elements.  If the outer loop 
> selects one element (or even every nth element), are the 
> elements selected by the outer loop going to have siblings 
> other than those selected by the outer loop; I'm guessing 
> not.  I suspect the inner loop in the algorithm above is 
> going to process a number nodes equal to $size, but those 
> nodes will be every nth element from the xx where n = $size.

I was guessing at you input document structure, because I don't think
you showed us what it looked like. Perhaps the elements you are looking
for are not actually siblings of each other.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.