xsl-list
[Top] [All Lists]

RE: Re: [xsl] How do I omit XML declaration in output?

2007-03-30 12:18:34
Bingo! Thanks. It helps to know where to look.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Mukul Gandhi <gandhi(_dot_)mukul(_at_)gmail(_dot_)com>
Sent:     Sat, 31 Mar 2007 00:32:48 +0530
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject:  Re: [xsl] How do I omit XML declaration in output?

On 3/31/07, cknell(_at_)onebox(_dot_)com <cknell(_at_)onebox(_dot_)com> wrote:
When I set the output method attribute to "xml", the ampersands are escaped, this is also 
what I expect (and what I need). The fly in the ointment is that with the method set to 
"xml", the xml document declaration is also output on the first line. This too is what I 
expect, unfortunately, not what I want. Is there a setting that will cause the processor to omit 
the document declaration, or will I have to remove it in a separate section of the processing 
pipeline?

This should work:
<xsl:output method="xml" omit-xml-declaration="yes" />

The default value of the attribute, omit-xml-declaration is no.

--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--