AnsweredAssumed Answered

Metadata Extraction requiring XPATH 2.0 expression

Question asked by pmahoney on Oct 16, 2010
Latest reply on Oct 27, 2010 by pmahoney
I have been using XPathMetadataExtracter very successfully but have a new requirment that requires the use of an XPATH 2.0 expression. In short I need to extract the minimum date from a nodeset. Here's the expression:

     min(/CabinBankCruiseItinerary//Sailing/(@Start cast as xs:date))

I've testing this expression against a document using XMLSpy, so I know it is valid XPATH V2.0 expression. But it seems Alfresco is not 2.0 capable.

    PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
    Property 'xpathMappingProperties' threw exception; nested exception is org.alfresco.error.AlfrescoRuntimeException: 09160000
    Failed to create XPath expression:
       Document property: firstSailing
       XPath:             min(/CabinBankCruiseItinerary//Sailing/(@Start cast as xs:date))

Can anyone confirm this and/or tell me what I need to do to make Alfresco XPATH 2.0 cabable?