[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to produce the "XML declaration line" in the

Subject: RE: How to produce the "XML declaration line" in the middle of a document?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 12 Aug 2005 00:02:16 +0100
xml declaration line
If you're producing XML, then you can't have an XML declaration in the
middle of the document - that would make it non-XML.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Khorasani, Houman [mailto:houman_khorasani@xxxxxxxxxxxxxx] 
> Sent: 11 August 2005 16:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  How to produce the "XML declaration line" 
> in the middle of a document?
> 
> Actually another situation came up.
> 
> If I use xsl:output method="text" then my escaped characters 
> <? Will be
> translated correctly from 
> &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
> to
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> However all the xml tags disappear and just the values appear in the
> output.
> 
> Do I set the xsl:output method="xml" then the tags are there but the
> escaped characters won't get translated correctly.
> 
> Is there a way out?
> Thanks
> Houman
> 
> 
> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx] 
> Sent: 09 August 2005 13:06
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  How to produce the "XML declaration line" in the
> middle of a document?
> 
> 
> Assuming you have xsl:output method="text" then you don't need to do
> anything special, you just place the string in the stylesheet as you
> would any other string. As always you need to quote < and &
> 
> so for example
> 
> &lt;?xml version="1.0" encoding="UTF-8"?>
> 
> 
> David
> 
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.