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

RE: Output conditional on preceding nodes.

Subject: RE: Output conditional on preceding nodes.
From: Delany Nick <Nick.Delany@xxxxxxx>
Date: Fri, 7 Dec 2001 16:51:39 -0000
nick delany
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


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.