[xml] Libxml2 disable-output-escaping ="yes" produces extra new-line ?
- From: "Peter Schlaifer" <peter schlaifer gmail com>
- To: <xml gnome org>
- Subject: [xml] Libxml2 disable-output-escaping ="yes" produces extra new-line ?
- Date: Sat, 10 Jan 2009 15:33:15 -0500
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/" >
<xsl:text><hello></xsl:text><xsl:text>goodbye</xsl:text>
<xsl:text
disable-output-escaping="yes"><hello></xsl:text><xsl:text>
goodbye</xsl:text>
</xsl:template>
</xsl:stylesheet>
Produces this output:
<?xml version="1.0"?>
<hello>goodbye
<hello>
goodbye
This is killing me - any help would be appreciated.
Also, since the output method is "text", is there any way to
suppress the <?xml ... > processing instruction?
Thanks for your help and a great product.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]