[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: How can I suppress the header line in output file formatted by XSL ?


Subject: [xsl] Re: How can I suppress the header line in output file formatted by XSL ?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Sun, 2 Nov 2003 20:19:28 +0100

> I always get
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> in the output file.
>
> My XSL file starts with this,
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" x
> mlns:fo="http://www.w3.org/1999/XSL/Format">
>
> My output file should not have this type of accessory line.
> Does anyboy know how to suppress this ?

This "line" is called xml declaration.

What you want can be achieved by setting to "yes" the omit-xml-declaration
attribute of xsl:output.


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords