This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error Gen'ing XML from HTML



>       ValueXml = "<?xml version='1.0'?>\n";
> 
> Even though the PI is in quotes, I get the error.  My xsl file is below.
> My question I guess, is how do I embed an xml PI in an xsl stylesheet?

quotes " do not have any special meaning to an XML parser in that position.
It isn't a PI it's the XML declaration and has to appear as the first
(or third if using a byte order mark) byte of the file.
So your input isn't well fomed XML.

Probably you want &lt;?xml .....

David




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]