Subject: Re: [xsl] Re: Unique node and delimiter concatenation From: Senthilkumaravelan Krishnanatham <senthil@xxxxxxxxx> Date: Thu, 29 Mar 2007 17:16:00 -0700 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Unique node and delim, Abel Braaksma | Thread | [xsl] Subject: Counting Path Occur, Scott Coon |
Re: [xsl] Re: Unique node and delim, Abel Braaksma | Date | Re: [xsl] What's your visual metaph, Rashmi Rubdi |
Month |