diff options
| author | scoder <none@none> | 2008-06-25 21:57:26 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2008-06-25 21:57:26 +0200 |
| commit | 5be1ef64b7d806e015fda31ace6637bde0f8e086 (patch) | |
| tree | 7333caa2ab03c5dfd63d26e38ddcf1a3168ff2ec /src/lxml/xinclude.pxi | |
| parent | 4e3883547fb238177cfab9a10e4da5c0e47084df (diff) | |
| download | python-lxml-5be1ef64b7d806e015fda31ace6637bde0f8e086.tar.gz | |
[svn r3859] r4557@delle: sbehnel | 2008-06-25 09:25:08 +0200
applied and refactored schema/xinclude resolvers patch by Michael Ballback
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/xinclude.pxi')
| -rw-r--r-- | src/lxml/xinclude.pxi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lxml/xinclude.pxi b/src/lxml/xinclude.pxi index f95be9ce..208d55e6 100644 --- a/src/lxml/xinclude.pxi +++ b/src/lxml/xinclude.pxi @@ -33,12 +33,15 @@ cdef class XInclude: # i.e. as a sibling, which does not conflict with traversal. cdef int result self._error_log.connect() + __GLOBAL_PARSER_CONTEXT.pushImpliedContextFromParser( + node._doc._parser) with nogil: if node._doc._parser is not None: result = xinclude.xmlXIncludeProcessTreeFlags( node._c_node, node._doc._parser._parse_options) else: result = xinclude.xmlXIncludeProcessTree(node._c_node) + __GLOBAL_PARSER_CONTEXT.popImpliedContext() self._error_log.disconnect() if result == -1: |
