This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need help with xslt
 
Similar Threads
Difference between count() and last()
pagination for forEach of JSTL List
copy nodes using copy-of
help regarding html select
javascript funtion needed for given html option/combo box