Author: dkuleshov
Date: 2010-12-20 08:29:54 -0500 (Mon, 20 Dec 2010)
New Revision: 3686
Modified:
jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/searching/order-by-property.xml
Log:
JCR-1519: Updated XPath query ordering chapter in jcr documents
Modified:
jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/searching/order-by-property.xml
===================================================================
---
jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/searching/order-by-property.xml 2010-12-20
13:11:43 UTC (rev 3685)
+++
jcr/branches/1.12.x/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/searching/order-by-property.xml 2010-12-20
13:29:54 UTC (rev 3686)
@@ -55,7 +55,7 @@
<programlisting>// make XPath query
QueryManager queryManager = workspace.getQueryManager();
// create query
-String xpathStatement = "//element(*,mix:title) order by prop_pagecount
ascending";
+String xpathStatement = "//element(*,mix:title) order by @prop_pagecount
ascending";
Query query = queryManager.createQuery(xpathStatement, Query.XPATH);
// execute query and fetch result
QueryResult result = query.execute();</programlisting>
Show replies by date