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



On Sat, Aug 24, 2002 at 01:13:58PM -0400, Daniel Veillard wrote:
> 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 )

Good, i have working code allready (needed the stuff really urgent!), i'm
just trying to figure out where to put it best (both libxslt-export.c and
libxslt-py.c are generated). I'll sed the patch as soon as i find a working
solution.

  Ralf

> 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/
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt



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