Dashboard > Hippo Open Source projects > ... > Hippo Repository Java Adapter > Sample Query
Added by Wander Grevink, last edited by Wander Grevink on May 15, 2007  (view change)
Labels: 
(None)


Sample DASL query for use by the Hippo Reposistory Adapter Webapp

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Sample DASL query for use by the Hippo Reposistory Adapter Webapp
-->
<d:searchrequest xmlns="http://hippo.nl/webdav/1.0" xmlns:d="DAV:" xmlns:hc="http://hippo.nl/cms/1.0">
    <d:basicsearch>
        <d:select>
            <d:prop>
                <d:displayname/>				
                <hc:caption/>
                <hc:type/>
                <hc:title/>
            </d:prop>
        </d:select>
        <d:from>
            <d:scope>
                <d:href/>
                <d:depth>Infinity</d:depth>
            </d:scope>
        </d:from>
        <d:where>
            <d:eq>
                <d:prop><hc:type/></d:prop>
                <d:literal>text</d:literal>
            </d:eq>
        </d:where>
        <d:limit>
            <d:nresults>${_1}</d:nresults>
        </d:limit>
    </d:basicsearch>
</d:searchrequest>

Sample XSLT transformer for use by the Hippo Reposistory Adapter Webapp

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Sample XSLT transformer for use by the Hippo Reposistory Adapter Webapp
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="/">
    <documents>
      <xsl:apply-templates select="searchResult/document/content"/>
    </documents>   
  </xsl:template>
  
  <xsl:template match="content">
    <document>
      <xsl:apply-templates/>
    </document>
  </xsl:template>
  
</xsl:stylesheet>
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.7 Build:#813 Aug 28, 2007) - Bug/feature request - Contact Administrators