mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-03 00:42:24 +03:00
applied a patch from Ralf Mattes providing style.saveResultToString()
* python/libxslt-python-api.xml python/libxslt.c python/libxsltclass.txt python/tests/basic.py: applied a patch from Ralf Mattes providing style.saveResultToString() Daniel
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/python -u
|
||||
import sys
|
||||
import libxml2
|
||||
import libxslt
|
||||
|
||||
@ -11,6 +12,10 @@ style = libxslt.parseStylesheetDoc(styledoc)
|
||||
doc = libxml2.parseFile("test.xml")
|
||||
result = style.applyStylesheet(doc, None)
|
||||
style.saveResultToFilename("foo", result, 0)
|
||||
stringval = style.saveResultToString(result)
|
||||
if (len(stringval) != 68):
|
||||
print "Error in saveResultToString"
|
||||
sys.exit(255)
|
||||
style.freeStylesheet()
|
||||
doc.freeDoc()
|
||||
result.freeDoc()
|
||||
|
Reference in New Issue
Block a user