This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Need help with xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Need help with xslt" Watch "Need help with xslt" New topic
Author

Need help with xslt

Hima Nadi
Ranch Hand

Joined: Apr 08, 2002
Posts: 32
i have an xml page like
<list id="222">
<name>aaa</name>
<size>233</size>
</list>
i want to change this to
<list>
<name>aaa</name>
<size>233</size>
</list>
using xslt
any help will be appriciated.
ThanQ very much in advance
Hima
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
try this out:
<xsl:template match="list">
<list>
<xsl:copy-of select="Name" />
<xsl:copy-of select="size" />
</list>
</xsl:template>
HTH
Tina


Alongwith being a good coder, try to be a good professional as well!
Hima Nadi
Ranch Hand

Joined: Apr 08, 2002
Posts: 32
ThanQ Tina,
that helped in my case
Hima
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help with xslt
 
Similar Threads
pagination for forEach of JSTL List
javascript funtion needed for given html option/combo box
help regarding html select
copy nodes using copy-of
Difference between count() and last()