[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Question about generation of the XML declaration

Subject: Question about generation of the XML declaration
From: Daniel Veillard <veillard@xxxxxxxxxx>
Date: Fri, 19 Jan 2001 08:12:43 -0500
xml declaration in servlet
Question: when outputting as XML, should the XSLT processor
          generate an XML declaration when for example no
 	  xsl:output is defined ?

 The spec says

 "The xml output method should output an XML declaration unless
  the omit-xml-declaration attribute has the value yes."

 However it seems a lot of examples I have found floating around
expect the XML declaration to not be generated in the output even
if there is no xsl:output element or if it doesn't specify
the omit-xml-declaration attribute. This is the case for example
D.2 Data Example from the spec itself, the SVG output.

 I didn't found any relevant entry in the FAQ nor the errata. 

 So did I missed something from the spec ? Or is this a deviation
from implementations when there is no xsl:output in the style
and that omit-xml-declaration, standalone and encoding are undefined ?

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@xxxxxxxxxx  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.