Thanks a lot guys for your quick replys.

It seems that year-from-dateTime is indeed not supported by jackrabbit and
neither is some other function for dates. So, I will just have to do
something like this:

//*...@begindate>=xs:dateTime('*2009*-01-01T00:00:00.000-00:00')]
Ana

2009/9/24 Jan Haderka <[email protected]>

>
> I concur. The dates are stored in ISO formats and I think you need to
> use some other function to convert them. Check the JCR spec for details.
>
> Jan
>
> On Thu, 2009-09-24 at 16:00 +0200, Will Scheidegger wrote:
> > Are you sure this function is supported in Jackrabbit? From what I've
> > experienced with Jackrabbit, only the very common functions are
> > implemented.
> >
> >
> > -will
> >
> > On 24.09.2009, at 15:56, Ana Osman wrote:
> >
> > > Hello all,
> > >
> > > I'm trying to use the xpath functions for quering the jcr. This is
> > > the query I'm trying to run:
> > > .//*[year-from-dateTime(@beginDate)<2009]
> > > but it gives me no result.
> > >
> > > How should I use these functions? Should I make some configurations
> > > in Magnolia?
> > >
> > > Thanks in advance for your help,
> > > Ana Osman
> >
> >
> >
> >
> >
> > ______________________________________________________________________
> > ----------------------------------------------------------------
> > For list details see
> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > To unsubscribe, E-mail to: <[email protected]>
> > ----------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to