aspose file tools*
The moose likes XML and Related Technologies and the fly likes XSLT - is it possible? 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 "XSLT - is it possible?" Watch "XSLT - is it possible?" New topic
Author

XSLT - is it possible?

Willian Corcel
Greenhorn

Joined: Jun 04, 2003
Posts: 13
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

Joined: Jun 06, 2002
Posts: 1056
In what way is (1,3,4,5,6,2) a 'sort by title' ?


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
check this tutorial http://www.w3schools.com/xsl/default.asp


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT - is it possible?