<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XPath date comparison in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20607#M9667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what is the current status of this?&amp;nbsp; is it possible to do date comparisons? (=, &amp;lt;, &amp;gt;, etc.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2007 03:46:30 GMT</pubDate>
    <dc:creator>spearson23</dc:creator>
    <dc:date>2007-07-08T03:46:30Z</dc:date>
    <item>
      <title>XPath date comparison</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20603#M9663</link>
      <description>Hi, shouldn't alfersco support date comparison in xpath queries over jcr? At least jcr spec defines minimal set of operators for date comparing (=, !=, &amp;lt;, &amp;gt;, &amp;gt;=, &amp;lt;=).I have following simple xpath query, and it doesn't return anything although it should://app:company_home/xx:documents/xx:</description>
      <pubDate>Fri, 05 May 2006 13:30:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20603#M9663</guid>
      <dc:creator>ananius</dc:creator>
      <dc:date>2006-05-05T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: XPath date comparison</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20604#M9664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The implementation uses Jaxen here. Having looked at the Jaxen API and equality operator it is treating dates as strings. No special date/time/date time treatment. You should be able to get this to work with string comparison and the ISO8601 date format. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will report back ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 14:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20604#M9664</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-05-05T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: XPath date comparison</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20605#M9665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you find anything out Andy?&amp;nbsp; I attempted to construct the query using xs:dateTime as defined in the spec.&amp;nbsp;&amp;nbsp; That didn't work, and the ISO8601 date format doesn't appear to work either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 20:45:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20605#M9665</guid>
      <dc:creator>lfuller</dc:creator>
      <dc:date>2007-04-02T20:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: XPath date comparison</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20606#M9666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Jaxen which gives us XPath v1.0 support (more than the spec). However, internally it supports a limited set of data types when evaluating equalities. DefaultEqualityExpr does dynamic type detection for boolean, numeric and String (but not date in 1.1B8). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think we can add the missing function, this will then do a Date.toString() comparison and should give the desired result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Functions are registered in org.alfresco.repo.search.NodeServiceXPath if you want to give this a go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(This should move out into a config file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1364" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1364&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 09:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20606#M9666</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-04-03T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: XPath date comparison</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20607#M9667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what is the current status of this?&amp;nbsp; is it possible to do date comparisons? (=, &amp;lt;, &amp;gt;, etc.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 03:46:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xpath-date-comparison/m-p/20607#M9667</guid>
      <dc:creator>spearson23</dc:creator>
      <dc:date>2007-07-08T03:46:30Z</dc:date>
    </item>
  </channel>
</rss>

