Re: [xslt] omit XML declaration in XSLT result

On Thu, Jul 23, 2009 at 10:14:34PM -0700, Al Pacifico wrote:
> For anyone who follows, the problem was with the
> xmlDocDumpFormatMemoryEnc call. When that line and the following "if
> (buffer)" conditional expression were replaced with "if
> (!xsltSaveResultToString(&buffer, &length, pDocOutput, cur))", the
> problem went away.

  Yes, because the informations about how to *serialize* the
XSLT output is not part of the resulting tree, it's information
remaining in the stylesheet, which is why the use of the
transformation context is needed to properly serialize.


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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