Subject: RE: [xsl] Accessing the Next or Previous Node in the Current node-list From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Wed, 12 Dec 2001 09:19:18 -0000 |
> > <xsl:if test="following-sibling::p">
</xsl:if> > > Ciao Chris > Only works if the nodes in the current node-list happen to be siblings of each other! The true answer is that you can't access nodes in the current node list other than the current node, without knowing how the current node list was constructed (Which we haven't been told). Mike Kay > > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Accessing the Next or Pre, Chris Bayes | Thread | [xsl] XSL Template Match using z:ro, Michael McCarty |
[xsl] RE: [xsl] Re: [xsl] Re[2]: [x, Julian Reschke | Date | Re: [xsl] Re: [xsl] Re[2]: [xsl] Re, David Carlisle |
Month |