jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helio S. P. (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-923) Support arithmetic Operators on search
Date Thu, 17 May 2007 22:09:16 GMT

     [ https://issues.apache.org/jira/browse/JCR-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Helio S. P. updated JCR-923:
----------------------------

    Description: 
The query languages should support arithmetic operators over propertie values.

Example 1: find all nodes with a date property foo with date value plus some time duration
that is greater than today (or another date propertie):

In XPath that's:

//*[op:add-yearMonthDurations(@foo,xs:yearMonthDuration("P3Y3M")) > xs:dateTime('2006-12-31T00:00:00.000Z')]

it was added 3 years and 3 months in the date value present in propertie foo and made the
comparison during the query.
The example was based on http://www.w3.org/TR/xquery-operators/#func-add-yearMonthDurations

  was:
The query languages should support arithmetic operators over propertie values.

Example 1: find all nodes with a date property foo with date value plus some time duration
that is greater than today:

In XPath that's:

//*[op:add-yearMonthDurations(@foo,xs:yearMonthDuration("P3Y3M")) > xs:dateTime('2006-12-31T00:00:00.000Z')]

it was added 3 years and 3 months in the date value present in propertie foo.
The example was based on http://www.w3.org/TR/xquery-operators/#func-add-yearMonthDurations


> Support arithmetic Operators on search
> --------------------------------------
>
>                 Key: JCR-923
>                 URL: https://issues.apache.org/jira/browse/JCR-923
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: query
>    Affects Versions: 1.3
>            Reporter: Helio S. P.
>            Priority: Minor
>
> The query languages should support arithmetic operators over propertie values.
> Example 1: find all nodes with a date property foo with date value plus some time duration
that is greater than today (or another date propertie):
> In XPath that's:
> //*[op:add-yearMonthDurations(@foo,xs:yearMonthDuration("P3Y3M")) > xs:dateTime('2006-12-31T00:00:00.000Z')]
> it was added 3 years and 3 months in the date value present in propertie foo and made
the comparison during the query.
> The example was based on http://www.w3.org/TR/xquery-operators/#func-add-yearMonthDurations

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message