You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected] on 25 Jan 2011 at 2:10
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 25 Jan 2011 at 2:10The text was updated successfully, but these errors were encountered: