This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Output conditional on preceding nodes.
- From: Delany Nick <Nick dot Delany at ICL dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 7 Dec 2001 16:51:39 -0000
- Subject: RE: [xsl] Output conditional on preceding nodes.
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello.
I have been given help by this list in choosing the third paragraph
following a header with text 'foo'. What I'm doing is something like
<xsl:template match="h1[. = 'foo']">
<xsl:if test="./following::p[3]">
<xsl:copy-of select="./following::p[3]"/>
</xsl:if>
</xsl:template>
fine - it may not be the best way of doing this, but it works so far.
BUT! I need an exclude version of this. i.e. If I want everything EXCEPT
the third paragraph, how do I do this?
(Why do I feel like I'm using this technology in ways it wasn't meant to be
used?)
Thanks for any help.
Nick Delany
ICL ITCentre
South County Business Park, Leopardstown, Co. Dublin, Ireland
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list