This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Convert XML to XML using XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Convert XML to XML using XSL" Watch "Convert XML to XML using XSL" New topic
Author

Convert XML to XML using XSL

Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 127
Please guide me to an example of converting one XML to another XML using XSL.

Also, is it possible to convert HTML to XML using XSL.

Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Please guide me to an example of converting one XML to another XML using XSL

See this.


Also, is it possible to convert HTML to XML using XSL

No. HTML is not a "well formed" markup language.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 127
Originally posted by Paul Sturrock:

No. HTML is not a "well formed" markup language.


Does that mean XHTML can be converted to XML using XSL?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

For all intents and purposes XHTML is XML, its just XML with an extra purpose, since the tags have special meaning to browsers. So yes, you can use XSLT with XHTML.
Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 127
Originally posted by Paul Sturrock:
For all intents and purposes XHTML is XML, its just XML with an extra purpose, since the tags have special meaning to browsers. So yes, you can use XSLT with XHTML.


Thanks for replying Paul

Is it used the same way as XML is used with XSLT?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Convert XML to XML using XSL
 
It's not a secret anymore!