This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Accessing the Next or Previous Node in the Current node-list
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 12 Dec 2001 01:13:20 -0000
- Subject: RE: [xsl] Accessing the Next or Previous Node in the Current node-list
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:if test="following-sibling::p">
</xsl:if>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Sasha Haghani
> Sent: 12 December 2001 00:23
> To: XSL List
> Subject: [xsl] Accessing the Next or Previous Node in the
> Current node-list
>
>
> How can I access the next or previous node in the current node-list?
>
> I need to perform special whitespace (e.g.: "output a newline
> character if the next element in the node-list is a
> paragraph") handling based on the next element which is going
> to be processed.
>
> FYI, I'm using an <xsl:apply-templates/> instruction with a
> select attribute to specifically select the nodes I'm
> interested in processing (i.e.: current node-list).
>
> Any help on this is much appreciated.
>
> Regards,
> Sasha Haghani.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list