Re: [xslt] XSLT transformation to Plain Text using Python bindings requires using children().serialize()?



On Fri, Aug 23, 2002 at 02:19:08PM -0400, Craeg K Strong wrote:
> Obviously, this code will not compile today, because
> the only choices are XML and HTML.  Am I missing something
> or is the API missing something?

  You are missing the fact that the output type is in the stylesheet
and that you need to process the result document with the stylesheet *again*
using style.saveResultToxxx to generate the serialized output.
It is explained in the documentation.
  Again and to be 100% clear you should not use the serialize()
method to serialize the result of a transformation. And reading
  http://www.w3.org/TR/xslt#output
may prove interesting to you:

"An XSLT processor may output the result tree as a sequence of bytes,
 although it is not required to be able to do so"

An XSLT processing generate a tree, then this tree may be serialized
as text, XML, HTML or somthing else.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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