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



On Sat, Aug 24, 2002 at 02:58:24PM +0200, Le grande pinguin wrote:
> On Fri, Aug 23, 2002 at 07:58:59PM -0400, Daniel Veillard wrote:
> > 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.
> 
> Daniel,
> 
> i just realized that 'saveResulToString' is not exported to the
> python level. Any reason for that, or should i just send a patch
> (i'm not shure whether this would be autogenerated)?

  yeah the problem is to map it to a Python string and the best is
then to do the wrapper manually, If you feel like making a patch
it's welcome, it's good if others could get their hands on the Python
wrapping code to speed its development :-) (Look at libxslt/python/libxslt.c
and libxml/python/libxml.c for other example of wrappers and how
to register them -- at the end of the .c )

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]