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

Re: XSL to generate required output

Subject: Re: XSL to generate required output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 12 Dec 2005 14:51:06 GMT
Re:  XSL to generate required output
>..
>> <xsl:variable name="poscurrent" select="position()"/>
>..
>> <xsl:copy-of select="following-sibling::Row[not(Cell='##')][position() &lt; poscurrent]"/>
>
>I am not Michael, but...
>
>You are here saying that you want the following siblings, that have a
>position which is less than the position of the current one. This is
>an expression that is always false.
>

Actually it says position less than the numeric value of the string
value of a child element called poscurrent which may or may not be
false, depending on that element.

But even if it said

<xsl:variable name="poscurrent" select="position()"/>
<xsl:copy-of select="following-sibling::Row[not(Cell='##')][position() &lt; $poscurrent]"/>

It wouldn't necessarily always be false (although it would probably
never be the required test). The current nodde list and the node list
selected by following-sibling::Row[not(Cell='##')] are certainly
different lists and so the meanings of position() in the two expressions
quoted are more or less unrelated, and comparing then may be either true
or false.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.