• 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: Subress XML declaration in XMLLib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Suppress XML declaration in XMLLib [with apologies for typo]
      • From: Tim Mansour <email@hidden>
References: 
 >Subress XML declaration in XMLLib (From: Tim Mansour <email@hidden>)
 >Re: Subress XML declaration in XMLLib (From: Jean-Marie <email@hidden>)

  • Prev by Date: Re: Shit - it's all true
  • Next by Date: Re: Shit - it's all true
  • 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