This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Remove <?xml version> line from output?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Remove <?xml version> line from output?
- From: Derek Ngok <derek dot ngok at objectvalley dot com>
- Date: Fri, 22 Dec 2000 14:37:35 +0800
- Organization: Object Valley (Asia Pacific) Ltd.
- References: <14914.45107.992000.290176@menteith.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
In your xsl file, add the following top-level tag:
<xsl:output method="xml" omit-xml-declaration="yes"/>
Derek
"Nice, Kerry A. (LNG-SHEP)" wrote:
> Hi,
> I'm using xalan to transform XML documents to RTF. It works fine except I
> get the
> <?xml version="1.0" encoding="UTF-8"?> line as the first line of my file
> which has
> to be stripped off before it will work as a RTF document.
>
> Is there anyway to suppress this during the transformation so I don't have
> to resort
> to string manipulation on the finished file. (I'm just using the
> SimpleTransform
> demo program from Xalan.)
>
> So, basically
>
> <?xml version="1.0" encoding="UTF-8"?>
> {\rtf1\ansi\ansicpg1252\uc1
> etc...
>
> will become
>
> {\rtf1\ansi\ansicpg1252\uc1
> etc.
>
> Thanks,
> Kerry.
>
> --------
> Kerry Nice
> Java Programmer
> LEXIS Publishing, Shepard's
> "Bring me the head of David Hasselhoff"
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list