This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
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 <?xml .....
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list