Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Re: Unique node and delimiter concatenation

From: Abel Braaksma <abel.online@--------->
To:
Date: 4/1/2007 8:32:00 PM
I see now that the OP did a repost of his original message and did some 
more updates to clarify his point. For archive readers, the OP restarted 
in this thread: 
http://www.biglist.com/lists/xsl-list/archives/200703/msg00871.html



Abel Braaksma wrote:
Senthilkumaravelan Krishnanatham wrote:
In a XML,if the following sibling of my test node value is "N" and 
that condition comma would not be introduced .

I need to introduce comma between all unique values and based on the 
sibling of the my test node .

Can not always look for the next subsequent following sibling

why not? In XPath you can do this with following-sibling::*[1] or 
similar.



it is based on the list of unique node values and following sibling 
indicator I need to introduce comma if last but one I need to 
introduce "and" alsoo and terminated by period.




I have no idea what you mean by this. In an earlier message you wrote:




My expected out is

<products>1 and 2. 

which I'm afraid is not going to help me much in helping you. You talk 
of a comma, the word "and" and a period on the end, based on a 
'following-sibling' condition, but you fail to say what goes wrong 
with your current code and you did not say what happened after you 
applied my suggestions and how that deviated from your expectations.



-- Abel


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent