Win a copy of Design for the Mind this week in the Design 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic