Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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?
 
Marshal
Posts: 25818
69
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 <xsl:output> element to convince yourself you aren't dreaming.
 
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic