Hi Nick

[EMAIL PROTECTED] wrote:
On the page of the Hippo Site Skeleton [1] there is talk of a standard Cocoon 
Collection namespace (http://apache.org/cocoon/collection/1.0)

Is there a definition of this namespace somewhere? (DTD, XSD or just some 
documentation)

At the moment the dasl2collection.xsl copies the properties of each result to 
the resulting xml, with all namespaces in it. Does the collection namespace 
define the contents of the properties element?

Cocoon has a generator (I think it's the XpathTraversableGenerator [2] but I'm not sure) which generates an XML representation of a directory tree. It's output is something like:

<collection:collection name="test" xmlns:collection="http://apache.org/cocoon/collection/1.0";>
  <collection:collection name="subdirectory" />
  <collection:resource name="test.xml">
    <collection:xpath docid="test.xml" query="/article/title">
      <title>This is a test document</title>
      <abstract>
        <para>Abstract of my test article</para>
      </abstract>
    </collection:xpath>
  </collection:resource>
  <collection:resource name="test.gif" />
</collection:collection>

I don't thinks there is a schema or DTD for it, but on the other hand the format is rather straightforward.

The dasl2collection.xsl transforms the output of the WebdavTransformer to a similar XML format. Similar, not the same, because like you say it adds elements like <collection:properties/>.

Regards
Niels

[2] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/XPathTraversableGenerator.html



********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to