aspose file tools*
The moose likes XML and Related Technologies and the fly likes Output after applying an XSLT stylesheet to an XML is always an XML? 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 "Output after applying an XSLT stylesheet to an XML is always an XML?" Watch "Output after applying an XSLT stylesheet to an XML is always an XML?" New topic
Author

Output after applying an XSLT stylesheet to an XML is always an XML?

Kelly Wood
Ranch Hand

Joined: Nov 07, 2004
Posts: 53
Hi, I am just reading the ibm tutorial that it states that:

"After applying an XSLT stylehseet to an XML document, the output is always another XML document."

I don't quite understand why the above statement is correct. I believe the XSL processor takes an XML document as input and transforms it (by applying XSLT stylesheet) to a format such as HTML. Perhaps my understanding is incorrect?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Originally posted by Kelly Wood:
I don't quite understand why the above statement is correct.
It isn't.
I believe the XSL processor takes an XML document as input and transforms it (by applying XSLT stylesheet) to a format such as HTML. Perhaps my understanding is incorrect?
No, you can convert to XML, HTML, or just plain text. Look up the <xslutput> element to convince yourself you aren't dreaming.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
The statement is not correct. As with most technical information available on the "web", the editorial process is very loose.

The eXtensible Stylesheet Language can be used to convert XML-based data to any other type of data structure, e.g. RTF, HTML, PostScript, etc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Output after applying an XSLT stylesheet to an XML is always an XML?