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

Re: Re: Unique node and delimiter concatenation

Subject: Re: Re: Unique node and delimiter concatenation
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 30 Mar 2007 00:33:29 +0200
Re:  Re: Unique node and delimiter concatenation
Senthilkumaravelan K wrote:

Second value may or may not be there. How I could select and introuce "," based on the second sibling value.

depending on whether you mean preceding or following sibling, this is the syntax for following sibling:


<xsl:if test="following-sibling::your-test-node[2] = 'your-test-value' ">
   <xsl:text>,</xsl:text>
</xsl:if>

it does not matter if that value is not there (it will evaluate to false if it is not there). If you just want to test for existence of that node:

<xsl:if test="following-sibling::your-test-node[2]">

which will be false if the value is not there.

-- Abel

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-2011 All Rights Reserved.