summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2007-01-11 03:13:13 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2007-01-11 03:13:13 +0000
commit40e7c29b35c975e4b7ff6275a9f8aaca24a4a86c (patch)
treece0476e8d46fa9bebf8b289617f3e9a521dae702 /python
parent7581a7896fbf2d9216622b54265ed202692ea006 (diff)
downloadlibxslt-40e7c29b35c975e4b7ff6275a9f8aaca24a4a86c.tar.gz
libxslt-40e7c29b35c975e4b7ff6275a9f8aaca24a4a86c.tar.bz2
libxslt-40e7c29b35c975e4b7ff6275a9f8aaca24a4a86c.zip
added new function replace from Joel Reed. added new test case for above.
* libexslt/strings.c: added new function replace from Joel Reed. * tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl, replace.1.out: added new test case for above. * libxslt.spec.in: trivial change from Gnome to GNOME * configure.in: trivial change for flags on my compilations * libxslt/documents.c, libxslt/documents.h, libxslt/keys.c, libxslt/keys.h, libxslt/variables.c, libxslt/templates.c, libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c, libxslt/xsltutils.c: fixed some documentation/comments and compilation warnings - no change to logic. * re-generated the documentation. svn path=/trunk/; revision=1413
Diffstat (limited to 'python')
-rw-r--r--python/libxslt-python-api.xml4
-rw-r--r--python/libxslt.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/libxslt-python-api.xml b/python/libxslt-python-api.xml
index fc35e5d1..49491f39 100644
--- a/python/libxslt-python-api.xml
+++ b/python/libxslt-python-api.xml
@@ -58,7 +58,7 @@
<return type='xmlDocPtr' info="the result document or NULL in case of error"/>
<arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
<arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
- <arg name='params' type='pythonObject' info='the parameters dictionnary'/>
+ <arg name='params' type='pythonObject' info='the parameters dictionary'/>
<arg name='transformCtxt' type='xsltTransformContextPtr' info='transformation context'/>
</function>
<function name='xsltApplyStylesheet' file='python'>
@@ -66,7 +66,7 @@
<return type='xmlDocPtr' info="the result document or NULL in case of error"/>
<arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
<arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
- <arg name='params' type='pythonObject' info='the parameters dictionnary'/>
+ <arg name='params' type='pythonObject' info='the parameters dictionary'/>
</function>
<function name='xsltRegisterErrorHandler' file='python'>
<info>Register a Python written function to for error reporting. The function is called back as f(ctx, error).</info>
diff --git a/python/libxslt.c b/python/libxslt.c
index 182dbcb8..18193838 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -561,8 +561,8 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options,
* The return value should be the document
* Should we test it somehow before getting the C object from it?
*/
- PyObject *py_doc = PyObject_GetAttrString(result, "_o");
- doc = PyxmlNode_Get(py_doc);
+ PyObject *py_doc = PyObject_GetAttrString(result, (char *) "_o");
+ doc = (xmlDocPtr) PyxmlNode_Get(py_doc);
/* do we have to DECCREF the result?? */
}
}