xsl-list
[Top] [All Lists]

How to produce the "XML declaration line" in the middle of a document?

2005-08-09 04:54:45
Hello,

I am transforming a text file with XSLT 1.0.
I would like to produce this tag <?xml version="1.0" encoding="UTF-8"?>
in the middle of an text document.


<xsl:template name="HeaderTemplate" match="/">

--vxvxv
Content-disposition: form-data; name="p_file_in";
filename="noColonsSpacesOrAmpersandsInHere.typ"
Content-type: text/xml

<?xml version="1.0" encoding="UTF-8"?>
<xsl:copy-of select="*"/>
--vxvxv--
</xsl:template>
</xsl:stylesheet>


But XMLSpy doesn't allow that.  I guess I have to escape characters like
< or ?, but I have no idea how.

Any comments?

Thanks
Houman

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--