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

Selection of every second node

Subject: Selection of every second node
From: Conny Kreyßel <Conny.Kreyssel@xxxxxxxxxxxxxx>
Date: Tue, 21 Aug 2001 13:41:55 +0200
 Selection of every second node
Hi,

I hope you can help me. How can I make a template that match with every
second node?

<root>
	<node>trash</node>
	<node>text</node>
	<node>trash</node>
	<node>text</node>
	<node>trash</node>
	<node>text</node>
</root>

and I would use a template like this:

<xsl:template match="node[every-second()]">
	make something
</xsl:template>

and the result should be:

text
text
text

I tried it with variables but it doesnt works.

Thanks for any hints.

Best regards
Conny

 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.