[xml] Segfault problem with python
- From: Colin Fox <cfox cfconsulting ca>
 
- To: xml gnome org
 
- Subject: [xml] Segfault problem with python
 
- Date: Sun, 29 Feb 2004 03:23:33 -0800
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, all.
I'm working with a mod_python program, and I'm using the following code
to process XML:
~    def lowlevel_process(self, args, xml_filename, xsl_filename):
        libxml2.lineNumbersDefault(1)
        libxml2.substituteEntitiesDefault(1)
        styledoc = libxml2.parseFile(xsl_filename)
        style = libxslt.parseStylesheetDoc(styledoc)
        doc = libxml2.parseFile(xml_filename)
If I use
~    xmllint --xinclude somefile.xml
or
~    xsltproc --xinclude stylefile.xsl somefile.xml
I get the expected output. But if I use the above code, I get a
segfault. Unfortunately I don't get a core or anything, just a segfault.
I was using entity references with my xml files, but I'd like to use
xinclude.
Is there something else I have to do to enable xinclude processing?
Thanks,
~    cf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAQcu1oaQ1/feGlJoRAl0SAJ99n1ycpKaecSI5jr9S4XnvC2e7/ACeLhIq
N/rKI4BZayjkxo78DALrn+U=
=5Mdk
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]