[XML-SIG] Re: Encoding again

Daniel Veillard veillard at redhat.com
Mon Apr 19 18:08:27 EDT 2004


On Mon, Apr 19, 2004 at 10:12:55PM +0200, Fredrik Lundh wrote:
> digging a little more, it looks as if you can use the "serialize" method
> to get the result you want:
> 
>     print result.serialize("iso-8859-1")

taht works but it ignores the options provided in the stylesheet then :-)

  stringval = style.saveResultToString(result)

is the right way to serialize accordingly to the xsl:output option.
There is a few examples in the source tree under python/tests/
or /usr/share/doc/libxslt-python-$version/ if you installed from the
RPMs

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



More information about the XML-SIG mailing list