[Lxml-checkins] r51736 - in lxml/trunk: . src/lxml
scoder at codespeak.net
scoder at codespeak.net
Thu Feb 21 17:19:21 CET 2008
Author: scoder
Date: Thu Feb 21 17:19:21 2008
New Revision: 51736
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/xslt.pxi
Log:
r3546 at delle: sbehnel | 2008-02-19 10:38:29 +0100
simplification
Modified: lxml/trunk/src/lxml/xslt.pxi
==============================================================================
--- lxml/trunk/src/lxml/xslt.pxi (original)
+++ lxml/trunk/src/lxml/xslt.pxi Thu Feb 21 17:19:21 2008
@@ -665,16 +665,14 @@
c_href,
tree.xmlNodeGetBase(self._c_node.doc, self._c_node))
if c_href is not NULL:
- href = funicode(c_href)
+ href_utf = c_href
tree.xmlFree(c_href)
- else:
- href = funicode(_cstr(href_utf))
- result_doc = _parseDocument(href, parser)
+ result_doc = _parseDocumentFromURL(href_utf, parser)
return _elementTreeFactory(result_doc, None)
# ID reference to embedded stylesheet
# try XML:ID lookup
- c_href = c_href+1 # skip leading '#'
+ c_href += 1 # skip leading '#'
c_attr = tree.xmlGetID(self._c_node.doc, c_href)
if c_attr is not NULL and c_attr.doc is self._c_node.doc:
result_node = _elementFactory(self._doc, c_attr.parent)
More information about the lxml-checkins
mailing list