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

RE: outputting <?xml version="1.0" encoding="UTF-8"?>

Subject: RE: outputting <?xml version="1.0" encoding="UTF-8"?>
From: "Ian Murphy" <ian@xxxxxxxxxxxxxx>
Date: Mon, 18 Sep 2006 16:36:08 +0200
xml header utf 8
This was one of the things I tried out before trying the list. My
current header is:

<xsl:output method="xml" version="1.0" encoding="UTF-8"
omit-xml-declaration="no"/>

But it doesn't seem to have had the effect it should have done. I
suspect the dotnet xsl.transform lib I am calling has some option which
overrides this but I can't find it.

Ian Murphy
Integra XP
http://www.integra-xp.com
00 34 94 621 5265


-----Mensaje original-----
De: Abel Braaksma [mailto:abel.online@xxxxxxxxx]
Enviado el: lunes, 18 de septiembre de 2006 13:52
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: Re:  outputting <?xml version="1.0" encoding="UTF-8"?>

Ian Murphy wrote:
> Now the question is, who is responsable for putting this header in
> place? From what I know it should be the .net 1.1 xsl libraries I use
> to do the transform, no? I've been searching the docs and can't find
> any reference to enabling or disabling the production of this header,
> though I could be looking for the wrong thing.
>

I missed on the whole discussion, but to enable/disable the <?xml ...?>
header part, you can do the following:

<xsl:output indent="yes" method="xml"  encoding="UTF-8"
omit-xml-declaration="no" />

But, if you haven't got this statement *and* your method is "xml", the
default value for "omit-xml-declaration" is "no", meaning, that the XML
declaration, by default, should be output by the processor. Setting it
to "yes" will suppress the output of the xml declaration.

Abel Braaksma
http://abelleba.metacarpus.com

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.