support for XPath 2.0 in sql processor?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

support for XPath 2.0 in sql processor?

Alexander Žaťko
I thought the oxf:sql processor supports XPath 2.0 expressions - is  
this correct? If so, why am I receiving the error below?

2007-05-22 10:40:50,247 http-80-Processor2 ERROR  
webapp.ProcessorService null - Exception at oxf:/apps/infolio/
infolio.xpl, line 206, column 45, description executing processor
org.dom4j.XPathException: Exception occurred evaluting XPath: /html/
body[1]/form[1]/div[2]/table[2]/tr[matches(td/b/font,'\d')].  
Exception: No Such Function matches
        at org.dom4j.xpath.DefaultXPath.handleJaxenException
(DefaultXPath.java:374)
        at org.dom4j.xpath.DefaultXPath.selectNodes(DefaultXPath.java:134)
        at org.orbeon.oxf.xml.XPathUtils.selectIterator(XPathUtils.java:83)
        at org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.start
(QueryInterpreter.java:151)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$InterpreterContentHandler.startElement(SQLProcessor.java:506)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$ForwardingContentHandler.startElement(SQLProcessor.java:676)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$InterpreterContentHandler.startElement(SQLProcessor.java:511)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$ForwardingContentHandler.startElement(SQLProcessor.java:676)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$InterpreterContentHandler.startElement(SQLProcessor.java:511)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$ForwardingContentHandler.startElement(SQLProcessor.java:676)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$InterpreterContentHandler.startElement(SQLProcessor.java:511)
        at org.orbeon.oxf.processor.sql.SQLProcessor
$RootInterpreter.startElement(SQLProcessor.java:295)

Thanks

A.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: support for XPath 2.0 in sql processor?

Alessandro Vernet
Administrator
On 5/22/07, Alexander Zatko <[hidden email]> wrote:
> I thought the oxf:sql processor supports XPath 2.0 expressions - is
> this correct? If so, why am I receiving the error below?

From what I can see, the SQL processor is still using XPath 1.0.

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: support for XPath 2.0 in sql processor?

Erik Bruchez
Administrator
Alessandro Vernet wrote:
> On 5/22/07, Alexander Zatko <[hidden email]> wrote:
>> I thought the oxf:sql processor supports XPath 2.0 expressions - is
>> this correct? If so, why am I receiving the error below?
>
>  From what I can see, the SQL processor is still using XPath 1.0.

Funnily enough, there is one spot where XPath 2.0 seems to be used: when
using sql:value-of or sql:copy-of. Otherwise, XPath 1.0 is used. It
looks like the migration to 2.0 was not completed.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: support for XPath 2.0 in sql processor?

Alexander Žaťko
Thanks

A.

On May 23, 2007, at 12:28 AM, Erik Bruchez wrote:

> Alessandro Vernet wrote:
>> On 5/22/07, Alexander Zatko <[hidden email]> wrote:
>>> I thought the oxf:sql processor supports XPath 2.0 expressions - is
>>> this correct? If so, why am I receiving the error below?
>>  From what I can see, the SQL processor is still using XPath 1.0.
>
> Funnily enough, there is one spot where XPath 2.0 seems to be used:  
> when using sql:value-of or sql:copy-of. Otherwise, XPath 1.0 is  
> used. It looks like the migration to 2.0 was not completed.
>
> -Erik
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
> --
> You receive this message as a subscriber of the ops-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/ 
> wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws