incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Westmann <t...@westmann.org>
Subject Re: Error when testing dates
Date Wed, 04 Jul 2012 18:58:00 GMT
The operators in the "op:" namespace cannot be invoked directly. The just provide the implementation
for the comparison operators. So the query should use an infix "eq" instead of the date-equal
operator. (And I hope that that mapping works correctly right now.)

Cheers,
Till

On Jul 4, 2012, at 11:47 AM, Eldon Carman wrote:

> Below is an error I received when attempting to run a query with dates.
> 
> XQuery:
> op:date-equal(xs:date("2004-12-25Z"), xs:date("2004-12-25+07:00"))
> 
> Error Message:
> Exception in thread "main" org.apache.vxquery.exceptions.SystemException:
> XPST0081: ../../xquery/simple/comparison/eq_date_date.xq (1:1) It is a
> static error if a QName used in a query contains a namespace prefix that
> cannot be expanded into a namespace URI by using the statically known
> namespaces.
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.createQName(XMLQueryTranslator.java:1685)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.createQName(XMLQueryTranslator.java:1674)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateFunctionExprNode(XMLQueryTranslator.java:1294)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateExpression(XMLQueryTranslator.java:666)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translatePathExpr(XMLQueryTranslator.java:1441)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateExpression(XMLQueryTranslator.java:662)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateExpressionList(XMLQueryTranslator.java:1954)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateExprNode(XMLQueryTranslator.java:1387)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateExpression(XMLQueryTranslator.java:643)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateMainModule(XMLQueryTranslator.java:626)
> at
> org.apache.vxquery.xmlquery.translator.XMLQueryTranslator.translateModule(XMLQueryTranslator.java:253)
> at
> org.apache.vxquery.xmlquery.query.XMLQueryCompiler.compile(XMLQueryCompiler.java:112)
> at org.apache.vxquery.cli.VXQuery.execute(VXQuery.java:147)
> at org.apache.vxquery.cli.VXQuery.main(VXQuery.java:81)


Mime
View raw message