[SR-Users] XMLOPS xpath issues

2012-02-27 Thread Olle E. Johansson
Friends, I'm having issues with the xpath support. If I run Daniel's example in the XMLOPS, xpath works as documented. But if I take the body of a PUBLISH from the and run xpath, I don't get expected results. Now, I'm no XPATH guru so I may be totally off the markup here... Here's the test scrip

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread Daniel-Constantin Mierla
Hello, an xpath invalid expression should be printed when the xpath expression is incorrect -- I cannot say what is wrong, not being an xpath expert by hart. However, there is a mismatching between the xml standards and SIP/SIMPLE specs. In XML, the namespaces are bound to prefixes, while th

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread Daniel-Constantin Mierla
I forgot to mention another option, a dirty workaround, use subst transformation to replace "xmlns=" with something else like "xmlxx=". Then practically there will be no more a xmlns without prefix and limxml2 xpath implementation is working fine without need to add xml_ns parameter to xmlops m

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread Olle E. Johansson
27 feb 2012 kl. 21:07 skrev Daniel-Constantin Mierla: > Hello, > > an xpath invalid expression should be printed when the xpath expression is > incorrect -- I cannot say what is wrong, not being an xpath expert by hart. > > However, there is a mismatching between the xml standards and SIP/SIMP

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread IƱaki Baz Castillo
2012/2/27 Daniel-Constantin Mierla : > However, there is a mismatching between the xml standards and SIP/SIMPLE > specs. In XML, the namespaces are bound to prefixes, while the guys at IETF > added by their own so called default namespace, which has no prefix for it. > That results in not being abl

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread Daniel-Constantin Mierla
On 2/27/12 9:28 PM, Olle E. Johansson wrote: 27 feb 2012 kl. 21:07 skrev Daniel-Constantin Mierla: Hello, an xpath invalid expression should be printed when the xpath expression is incorrect -- I cannot say what is wrong, not being an xpath expert by hart. However, there is a mismatching b

Re: [SR-Users] XMLOPS xpath issues

2012-02-27 Thread Olle E. Johansson
27 feb 2012 kl. 21:44 skrev Daniel-Constantin Mierla: > > > On 2/27/12 9:28 PM, Olle E. Johansson wrote: >> 27 feb 2012 kl. 21:07 skrev Daniel-Constantin Mierla: >> >>> Hello, >>> >>> an xpath invalid expression should be printed when the xpath expression is >>> incorrect -- I cannot say wha