Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with xslt

 
Hima Nadi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this out:
<xsl:template match="list">
<list>
<xsl:copy-of select="Name" />
<xsl:copy-of select="size" />
</list>
</xsl:template>
HTH
Tina
 
Hima Nadi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThanQ Tina,
that helped in my case
Hima
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!