Subject: Re: [xsl] Comma Separated Values - XSLT1.0 From: Anton Triest <anton@xxxxxxxx> Date: Thu, 21 Oct 2004 11:53:03 +0200 |
Of course, you could simplify the problem by first converting your input to something more XMLish:I have 2 XML elements each containing comma separated values. I need to take each individual value from <elem2> and see if it exists in <elem1>. If true is returned, go off and do something..... otherwise get the next value from <elem2> and compare it to all the values in <elem1> etc etc.
<data>
<elem1>bloggs,smith,jones,bush,howard,bennis</elem1>
<elem2>skeen,seinfield,longshaw,bloggs,keitel</elem2>
</data>
<data> <elem1> <e>bloggs</e> <e>smith</e> <e>jones</e> <e>bush</e> <e>howard</e> <e>bennis</e> </elem1> <elem2> <e>skeen</e> <e>seinfield</e> <e>longshaw</e> <e>bloggs</e> <e>keitel</e> </elem2> </data>
HTH, Anton
So the approach would be:
Take 'skeen' and compare it to all the comma separated values in <elem1>. If FALSE is returned, take 'seinfield' and compare to all values in <elem1> and so on...If TRUE is returned at any stage DO SOMETHING. If at the end nothing is found, DO SOMETHING DIFFERENT......
Any suggestions on how to do this?
Thanks!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Comma Separated Values - XSL, allan . mccluskey | Thread | RE: [xsl] Comma Separated Values -, Jarno.Elovirta |
RE: [xsl] Comma Separated Values -, Jarno.Elovirta | Date | [xsl] Getting a difinitive answer o, Michael |
Month |