mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-28 04:41:59 +03:00
attempst to tweak to get full memory debug... the basic API starts to work
* configure.in python/Makefile.am: attempst to tweak to get full memory debug... * python/generator.py python/libxsl.py python/libxslt-python-api.xml python/libxslt.c python/libxslt_wrap.h python/libxsltclass.txt: the basic API starts to work * python/tests/test.*: first basic test * libxslt/xsltutils.c: fixed a comment Daniel
This commit is contained in:
9
python/tests/test.py
Executable file
9
python/tests/test.py
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python -u
|
||||
import libxml2
|
||||
import libxslt
|
||||
|
||||
styledoc = libxml2.parseFile("test.xsl")
|
||||
style = libxslt.parseStylesheetDoc(styledoc)
|
||||
doc = libxml2.parseFile("test.xml")
|
||||
result = style.applyStylesheet(doc, None)
|
||||
result.saveFile("-")
|
1
python/tests/test.xml
Normal file
1
python/tests/test.xml
Normal file
@ -0,0 +1 @@
|
||||
<test/>
|
9
python/tests/test.xsl
Normal file
9
python/tests/test.xsl
Normal file
@ -0,0 +1,9 @@
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:template match="/">
|
||||
<article>
|
||||
<title>Hello World</title>
|
||||
</article>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user