Re: Subress XML declaration in XMLLib
Re: Subress XML declaration in XMLLib
- Subject: Re: Subress XML declaration in XMLLib
- From: Christopher Nebel <email@hidden>
- Date: Mon, 6 Jun 2005 12:14:51 -0700
On Jun 3, 2005, at 1:59 AM, Jean-Marie wrote:
I'm using Satimage's (excellent!) XMLLib to do a xsl
transformation, the output of which is intended to be a plain text
file. At the moment it's including the XML processing instruction:
<?xml version="1.0" encoding="ISO-8859-1"?>
Is there a way to suppress this?
Put the omit-xml-declaration attribute in the output declaration of
your XSLT document.
The omit-xml-declaration attribute specifies whether the XSLT
processor should output an XML declaration; the value must be yes
or no.
<xsl:output method="xml" omit-xml-declaration="yes"/>
Of course, if the output is really intended to be a plain text file
and *not* XML, then you ought to say "<xsl:output method='text'/>",
which will probably solve the problem another way.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden