From: <fg...@us...> - 2009-02-23 18:03:51
|
Revision: 1062 http://openutils.svn.sourceforge.net/openutils/?rev=1062&view=rev Author: fgrilli Date: 2009-02-23 18:03:48 +0000 (Mon, 23 Feb 2009) Log Message: ----------- more intro Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/site/apt/index.apt Modified: trunk/openutils-mgnlcriteria/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlcriteria/src/site/apt/index.apt 2009-02-23 12:48:05 UTC (rev 1061) +++ trunk/openutils-mgnlcriteria/src/site/apt/index.apt 2009-02-23 18:03:48 UTC (rev 1062) @@ -38,9 +38,11 @@ +----------------------------------------------+ - will be translated into the following xpath statement + All this will be translated into the following xpath statement <<<//dogs//*[((jcr:contains(@name, 'Nana')) and (@weight>10.0) and (@birthDate >=xs:dateTime('2004-01-01T00:00:00.000+00:00') and @birthDate <=xs:dateTime('2008-12-01T23:59:59.000+00:00')))] order by @jcr:score() descending>>> + + Anyone writing xpath queries by hand knows how painful and error-prone this can be. Another handy feature is the possibility to specify a different type to be returned in the results Collection. eg. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |