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

Re: Output fixed length records using mod operators to

Subject: Re: Output fixed length records using mod operators to group results
From: Chris <ryder.roundabout@xxxxxxxxx>
Date: Thu, 10 May 2007 23:11:13 -0400
Re:  Output fixed length records using mod operators to
Wow!

Thanks (again!) David.

I was able to understand why everything works the way it works except
the for-each within the last container condition. Can you elaborate on
that?  It does exactly what I need it to do, but I'd sure like to know
why!

The section I'm referring to is:
    <xsl:if test="position()=last()">
      <xsl:for-each select="(//*)[position()&lt;= ((4000 -last() )mod 4)]">
        <xsl:value-of select="$field"/>
      </xsl:for-each>
    </xsl:if>

I'm not familiar with the (//*) expression, nor can I grasp the math
behind the predicate in that xpath (literature major as an undergrad).

Thanks,
Chris

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.