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

RE: omit-xml-declaration="yes" doesn't work

Subject: RE: omit-xml-declaration="yes" doesn't work
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 19 Oct 2001 12:38:15 +0100
omit xml declaration yes
You should never get an XML declaration with method="html".

Saxon will override the omit-xml-declaration request if you request a
non-standard encoding, or a standalone value.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Alex Hunsley
> Sent: 19 October 2001 12:14
> To: xsl-list
> Subject:  omit-xml-declaration="yes" doesn't work
>
>
> Note: I've searched the xsl-dev archives and found people
> talking about
> this problem, but couldn't find a solution.
>
>
> I'm using jaxp-1.1 (saxon) to do transformations to some
> xhtml so I can
> display it as html. It all works fine, except that the
> omit-xml-declaration="yes" instruction seems to be ignored.
>
> The complete xsl:output element in my stylesheet is as follows:
>
>    <xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>
>
> The document output from the transformation still has the following
> first line:
>
>   <?xml version="1.0" encoding="iso-8859-1"?>
>
> which it shouldn't, as far as I can see.
>
>
> Can anyone offer any advice on this problem?
>
> thanks
>
> alex
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.