Re: [xslt] omit XML declaration in XSLT result



On Thu, Jul 23, 2009 at 10:14:34PM -0700, Al Pacifico wrote:
> [SOLVED]
> 
> 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

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


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