This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
  • 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
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic