List Info

Thread: xmerl does not support contains(string, string) XPath function




xmerl does not support contains(string, string) XPath function
user name
2007-09-25 06:42:18
Hi,

The xmerl_xpath module summary says that it implements the
whole XPath language, but it seems 
that the contains() string function ( http://w
ww.w3.org/TR/xpath#function-contains ) is missing:

13> xmerl_xpath:string("//foo[contains(bar,
'oe')]",element(1,xmerl_scan:string("<foo
bar="Joe" />"))).
** exited: {unknown_expr,
            {xmlObj,
             nodeset,
             [{xmlNode,
               attribute,
              
{xmlAttribute,bar,[],[],[],[],1,[],"Joe",false},
               [{xmlNode,
                 element,
                 {xmlElement,
                  foo,
                  foo,
                  [],
                  {xmlNamespace,[],[]},
                  [],
                  1,
                  [{xmlAttribute,bar,[],[],[],[],...}],
                  [],
                  [],
                  "/export/localhome/lblircz",
                  undeclared},
                 [{xmlNode,
                   root_node,
                   {xmlDocument,
                    {xmlElement,
                     foo,
                     foo,
                     [],
                     {xmlNamespace,[],[]},
                     [],
                     1,
                     [...],...}},
                   [],
                   2}],
                 1},
                {xmlNode,
                 root_node,
                 {xmlDocument,
                  {xmlElement,
                   foo,
                   foo,
                   [],
                   {xmlNamespace,[],[]},
                   [],
                   1,
                   [{xmlAttribute,bar,[],...}],
                   [],
                   [],
                   "/home/erlanguser",
                   undeclared}},
                 [],
                 2}],
               1}]}} **
14> 



Regards,
Balint


_______________________________________________
erlang-bugs mailing list
erlang-bugserlang.org
ht
tp://www.erlang.org/mailman/listinfo/erlang-bugs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )