Hi,
I get a very consistent error when including an XSL stylesheet from
another XSL stylesheet using xsl:include or xsl:import
But the problem is so basic that I cannot believe it could be
something inside lxml. So I am overlooking something in my code.
When there is a template file named "template.xsl" with
------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
http://www.w3.org/1999/XSL/Transform"
<foo>...</foo>
------------------------------------------------
and another template file named:
------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
http://www.w3.org/1999/XSL/Transform"
This is a paragraph
------------------------------------------------
and then executing the code below
------------------------------------------------
import lxml
f = open('template.xsl', 'rb')
xslttree = lxml.etree.parse(f)
f.close()
transformer = lxml.etree.XSLT(xslttree)
------------------------------------------------
the following error is raised:
File "xslt.pxi", line 261, in etree.XSLT.__init__
File "etree.pyx", line 133, in
etree._ExceptionContext._raise_if_stored
etree.XSLTParseError: Cannot resolve URI XSLT://para.xsl
All 3 files are in the same directory. And I am in that directory
when executing the Python code.
What do I do wrong that XSLT cannot resolve the para.xsl file?
Petr
----------------------------------------------
Petr van Blokland
buro@petr.com | www.petr.com | +31 15 219 10 40
----------------------------------------------