I'm following the instructions in: http://codespeak.net/lxml/xpathxslt.html#xslt
$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml.etree
>>> doc = lxml.etree.parse(file('pmml2texfrag.xsl'))
>>> xslt = etree.XSLT(doc)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'etree' is not defined
>>> xslt = lxml.etree.XSLT(doc)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "xslt.pxi", line 399, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:107912)
lxml.etree.XSLTParseError: Attribute 'p': Failed to compile the expression
'sum($position,@position/number(.))' in the AVT.
>>>
This could, of course, be a lxml issue (but I don't know either way).
Jonathan
Original issue reported on code.google.com by Jonathan.Fine1@googlemail.com on 25 Jan 2011 at 2:10
Original issue reported on code.google.com by
Jonathan.Fine1@googlemail.com
on 25 Jan 2011 at 2:10