• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suppress XML declaration in XMLLib [with apologies for typo]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Suppress XML declaration in XMLLib [with apologies for typo]
      • From: Emmanuel <email@hidden>
References: 
 >Subress XML declaration in XMLLib (From: Tim Mansour <email@hidden>)
 >Re: Subress XML declaration in XMLLib (From: Jean-Marie <email@hidden>)
 >Re: Subress XML declaration in XMLLib (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Shit - it's all true
  • Next by Date: Scriptability of Character Palette
  • Previous by thread: Re: Subress XML declaration in XMLLib
  • Next by thread: Re: Suppress XML declaration in XMLLib [with apologies for typo]
  • Index(es):
    • Date
    • Thread