aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with xslt