[xsl] Question about generation of the XML declaration

Subject: [xsl] Question about generation of the XML declaration
From: Daniel Veillard <veillard@xxxxxxxxxx>
Date: Fri, 19 Jan 2001 08:12:43 -0500
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 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