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

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

Subject: RE: Re: How do I omit XML declaration in output?
From: cknell@xxxxxxxxxx
Date: Fri, 30 Mar 2007 15:18:14 -0400
RE: Re:  How do I omit XML declaration in output?
Bingo! Thanks. It helps to know where to look.
--
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Sent:     Sat, 31 Mar 2007 00:32:48 +0530
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re:  How do I omit XML declaration in output?

On 3/31/07, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> 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

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.