|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Question about generation of the XML declaration
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








