wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes transform xml -> xml with xsl(t) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "transform xml -> xml with xsl(t)" Watch "transform xml -> xml with xsl(t)" New topic
Author

transform xml -> xml with xsl(t)

Jan Ulrich
Greenhorn

Joined: Mar 25, 2002
Posts: 4
Hy, i have heard, that it is possible to transform an xml file to another xml file with xsl, but i cannot find any examples in the net. So please send me an example about this topic.
Bye Jan
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
check this out..
XSLT Tutorial
Jan Ulrich
Greenhorn

Joined: Mar 25, 2002
Posts: 4
Hy karthik, thank you for the tip, but i have got again a problem. I tried the example with the transformation from a xml in a ( i think ) dtd-file, you can find the example on:
http://www.zvon.org/xxl/XSLTutorial/Output/example63_ch14.html
But i can't find the output-source in my browser, so i think, there must be an error. Which xml-stylesheet statement should i write in my xml-file, becauce perhaps this is the reason why it doesn't work.
Now i have got the following statement in my xml-file:
<?xml-stylesheet href="first.xsl" type="text/xsl"?>
is this the error, please help me soon.
Regards, Jan
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
jan ,
just save the xsl content in .xsl file and specify that file name as the value of the attribute href.
try using xalan-j xml.apache.org OR saxon for learning xslt
Originally posted by Jan Ulrich:
I tried the example with the transformation from a xml in a ( i think ) dtd-file, you can find the example on:
http://www.zvon.org/xxl/XSLTutorial/Output/example63_ch14.html
But i can't find the output-source in my browser, so i think, there must be an error. Which xml-stylesheet statement should i write in my xml-file, becauce perhaps this is the reason why it doesn't work.
Now i have got the following statement in my xml-file:
<?xml-stylesheet href="first.xsl" type="text/xsl"?>
Jan
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Hi Jan,
you have a german name, don't know if you actually speak german.
If so: The xml-section of the well-known selfhtml is really good as a starter. http://selfhtml.teamone.de/xml/index.htm
Xslt-stuff included.
regards axel
[ April 13, 2002: Message edited by: Axel Janssen ]
 
Consider Paul's rocket mass heater.
 
subject: transform xml -> xml with xsl(t)
 
Similar Threads
JSP for transforming XML using XSL
JSP with XSL
Include XML in XSL (not vice versa)
JSP with XSL
Which one is the best XML parser?