This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Remove <?xml version> line from output?


Thanks,
Both of these worked.  I'll probably go with the text one.

(I wish I had checked my inbox more carefully before I reposted this 
question.  Looks like my mail was delayed for a 1/2 a day or so.)

Thanks again, this list is very helpful,
Kerry.


-----Original Message-----
From: Jeni Tennison [mailto:mail@jenitennison.com]
Sent: Friday, December 22, 2000 3:28 AM
To: Nice, Kerry A. (LNG-SHEP)
Cc: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Remove <?xml version> line from output?


Kerry,

Derek Ngok wrote:
> In your xsl file, add the following top-level tag:
>     <xsl:output method="xml" omit-xml-declaration="yes"/>

Actually, if you're producing RTF, then you shouldn't be outputting
using the XML method anyway: you're producing text, not XML, so use:

<xsl:output method="text" />

and the XSLT processor won't output an XML declaration because it
knows that it's not XML anyway! :)

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]