This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Next Node tests


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@zkb.ch]
Sent: 15 November 2001 13:43
To: xsl-list
Subject: Re: [xsl] Next Node tests


Ian_blizard@hp.com (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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]