aspose file tools*
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
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: 126
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: 126
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: 126
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Convert XML to XML using XSL