1
0
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:
Daniel Veillard
2002-02-05 23:23:15 +00:00
parent f6064ec0ba
commit f0cb070b69
13 changed files with 186 additions and 29 deletions

9
python/tests/test.py Executable file
View 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
View File

@ -0,0 +1 @@
<test/>

9
python/tests/test.xsl Normal file
View 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>