http://onionworks.net/2006/data/application

search (query : xml, [returnFrom : int], [returnTo : int]) : xml

The command “search” executes a personalised search query against the data stock. All elements and attributes serve for narrowing down the search and are optional. Indicating several paths and schemas is possible.

<xsl:stylesheet xmlns:app="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:variable name="query">
<searchQuery mode="tree">
<path>onion://data/objects/94</path>
</searchQuery>
</xsl:variable>
<xsl:value-of select="c.now()" />
<br />
<ul>
<xsl:for-each select="app:search($query, 1, 200)/result/item">
<li>
<xsl:value-of select="c.dataCall(., 'meta')/*/@onion:name" />
</li>
</xsl:for-each>
</ul>
<xsl:value-of select="c.now()" />
<br />
</xsl:template>
</xsl:stylesheet>
List the first 200 objects in a subtree
<searchQuery mode="tree|exactChildren|treeReferences" status="checkedOut|checkedIn" editor="Ralf Kahlert" lastEditedFrom="2000-01-01" lastEditedTo="2010-01-01" creator="Ralf Kahlert" createdFrom="2000-01-01" createdTo="2010-01-01">
<name type="exact|contains">Text</name>
<content type="contains|containsExact">Text</content>
<path>onion://data/objects/100</path>
<path>onion://data/objects/500</path>
<schema includeDerivations="true">http://onion.net/wiki</schema>
</searchQuery>
Available options in a query
<result count="2">
<item>onion://data/objects/4</item>
<item>onion://data/objects/5</item>
</result>
Structure of the result XML