aspose file tools*
The moose likes XML and Related Technologies and the fly likes need something similoiar to arrays in XSLT.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "need something similoiar to arrays in XSLT.." Watch "need something similoiar to arrays in XSLT.." New topic
Author

need something similoiar to arrays in XSLT..

Sarran Vidyakumar
Greenhorn

Joined: Mar 26, 2003
Posts: 28
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
You should select all the other nodes except those you want to "delete".


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: need something similoiar to arrays in XSLT..