File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kelly Wood
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20184
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic