Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need something similoiar to arrays in XSLT..

 
Sarran Vidyakumar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a xml file whick looks like

<read>
<data col="1">xxxx</data>
<data col="2">rrrr</data>
<data col="3">jjjj</data>
<data col="4">tttt</data>
<data col="5">yyyy</data>
<data col="6">zzzz</data>
</read>

I need to write an xsl file which takes in parameters{say 2,4,6}{ these r dynamic and can be any values//any number}...and deletes elements with col attribute value 2,4,6 and the xml will look like

<read>
<data col="1">xxxx</data>
<data col="3">jjjj</data>
<data col="5">yyyy</data>
</read>


any suggestions on doin this ??? Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should select all the other nodes except those you want to "delete".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic