Stefan Behnel wrote:
Martijn Faassen wrote:
Steve Howe wrote:
I think it would be much more interesting to support XQuery (through Xerces?) and XQuery Update when it gets defined... It is probably easier to get involved in updating XUpdate and cleaning up the definition than to implement XQuery. :)
Anyway, I think something like XUpdate would be nice. Simplicity has its value.
XUpdate has its own namespace and uses XPath. It should be easy to implement it on top of lxml in callable namespace classes. Another candidate for "lxml.elementlib", preferably in its own lxml/elementlib/xupdate.py.
I'm not clear on the purpose of 'elementlib' - I haven't followed discussion on that. Is that code that could apply to any ElementTree ipmlementation? If so, XUpdate wouldn't apply as it would rely on XPath.
So, if anyone wants to implement it...
Right. I'm thinking about it, but I don't have immediate time or need, so we'll see. :) Regards, Martijn