--> -->
XSLTApplyError |
Python 3.11.5: /usr/bin/python3 Thu Dec 7 09:52:05 2023 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/ejona/htdocs/cgi-bin/ejona-xslt.py in <module> |
33
|
34 print("Content-Type:", contenttype)
|
35 print()
|
=> 36 print(transform(xml, xslt))
|
37 #print xml
|
builtin print = <built-in function print>, transform = <function transform>, xml = '..//archive/2005/08/index.xml', xslt = '/srv/http/ejona.ersoft.org/htdocs/shared/xsl/text-html.xsl' |
/home/ejona/htdocs/cgi-bin/ejona-xslt.py in transform(xml='..//archive/2005/08/index.xml', xslt='/srv/http/ejona.ersoft.org/htdocs/shared/xsl/text-html.xsl') |
12 style = etree.XSLT(etree.parse(xslt))
|
13
|
=> 14 return style.tostring(style.apply(doc))
|
15
|
16 if __name__ == "__main__":
|
style = <lxml.etree.XSLT object>, style.tostring = <bound method XSLT.tostring of <lxml.etree.XSLT object>>, style.apply = <bound method XSLT.apply of <lxml.etree.XSLT object>>, doc = <lxml.etree._ElementTree object> |
XSLTApplyError: Cannot resolve URI ../archive/2005/08/02/overview/index.xml
add_note =
<built-in method add_note of lxml.etree.XSLTApplyError object>
args =
('Cannot resolve URI ../archive/2005/08/02/overview/index.xml',)
error_log =
../archive/2005/08/02/overview/index.xml:40:378:..._FINISHED: Premature end of data in tag p line 40
with_traceback =
<built-in method with_traceback of lxml.etree.XSLTApplyError object>