Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT - is it possible?

 
Willian Corcel
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to use XSLT to read a XML and transform to HTML...
supose I have a XML file like this:
<root>
<node title="node6">
<node title="node2" />
</node>
<node title="node3">
<node title="node4">
<node title="node5"/>
</node>
</node>
<node title="node1" />
</root>
I want to transform to a HTML... and sort by title... it'd be like this:
-node1
-node3
-node4
-node5
-node6
-node2

How can I do that? I have no idea how to write the XSL to do this job.
Thanks!
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what way is (1,3,4,5,6,2) a 'sort by title' ?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this tutorial http://www.w3schools.com/xsl/default.asp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic