Re: Suppress XML declaration in XMLLib [with apologies for typo]
Re: Suppress XML declaration in XMLLib [with apologies for typo]
- Subject: Re: Suppress XML declaration in XMLLib [with apologies for typo]
- From: Tim Mansour <email@hidden>
- Date: Tue, 7 Jun 2005 19:12:08 +1000
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.
Well, this is what's confusing me: I have a XSL file that transforms
an XML file into a plain text file, and I don't want any
<?xml version="1.0" encoding="ISO-8859-1"?> instruction in the
resulting text file. My XSL file currently starts like this:
<?xml version='1.0' encoding='iso-8859-1'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/
Transform'>
<xsl:output method="text" omit-xml-declaration="yes"/>
Having explicitly stated the output method as Chris suggested. I've
tested this with an XML file using the application "TestXSLT" and it
works fine ... and the XML declaration isn't inserted.
HOWEVER, when I test exactly the same XML and XSL files with the
XMLTransform instruction in Satimage XMLLib, the
<?xml version="1.0" encoding="ISO-8859-1"?> declaration IS inserted.
So why is the Satimage osax inserting the XML declaration when I've
asked for it to be omitted?
--
Tim Mansour <email@hidden>
_______________________________________________
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