var elems = doc.find("//item[fn:lower-case(ns1:duration)='2:00']",ns);
Reports the following error.
function lower-case not found
XPath error : Unregistered function
Marco Rogers
unread,
Oct 18, 2011, 4:42:02 PM10/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to libx...@googlegroups.com
Do you know if libxml2 supports XPath functions? I can't find the appropriate documentation. If it's supported by libxml2 I'll try to add support to libxmljs.
:Marco
Nicolas Morel
unread,
Oct 19, 2011, 4:50:46 AM10/19/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to libx...@googlegroups.com
Hello,
It seems some functions are defined in libxml2 but not lower-case. They are listed here (everything ending with function I guess) and you have the corresponding sources here. You could also register new functions to fill the gaps but that should definitely belong to libxml2.