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

RE: Next Node tests

Subject: RE: Next Node tests
From: Ian_blizard@xxxxxx (Ian Blizard)
Date: Thu, 15 Nov 2001 14:03:02 +0000
david joerg
Thanks for your help everyone,

Jeni, David, Joerg and the numerous other who have helped me through to 
completetion of my XSL project, I salute you.

Apologies for confusing 'user-error' woth 'sporadic behaviour', it just 
seemed bizarre that the same XML fiel transformed differently using the 
same XSL stylesheets on different machines.

I'm off to hopefully contribute some more bugs through 'user-error'.

-Buzz.

-----Original Message-----
From: joerg.pietschmann [mailto:joerg.pietschmann@xxxxxx]
Sent: 15 November 2001 13:43
To: xsl-list
Subject: Re:  Next Node tests


Ian_blizard@xxxxxx (Ian Blizard) wrote
> I'm now revisiting my stylesheets, I need to test whether or not the
> current Item node is the last Item node in the current context.

David already explained why your code may have "behaved sporadically".
In addition to this, if you want to have a robust test not dependend
on how the template was invoked, you may want to use something like
  <xsl:when test="not(following-sibling::item)"/>
or
  <xsl:when test="not(following-sibling::*)"/>

HTH
J.Pietschmann

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



 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.