Re: [xml] Libxml2 disable-output-escaping ="yes" produces extra new-line ?

On 10/01/2009, Peter Schlaifer <peter schlaifer gmail com> wrote:
<xsl:stylesheet version="1.0"
  <xsl:output method="text"/>
  <xsl:template match="/" >


 Produces this output:

  <?xml version="1.0"?>

Well, you are doing something wrong outside of your sample sheet above.

"The text output method ignores the disable-output-escaping attribute,
since it does not perform any output escaping."

The output I get with trunk xsltproc and your sample is:

 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?

Look at whatever code you have invoking the transform? The xml
prologue indicates it's still trying to output in xml, not text.

(I didn't get as far as checking for problems d-o-e in libxslt, your
issue - typically - seems to be with the fact you're using it at all.)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]