XML:DB Generator
http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Main
User Documentation
Generators
Overview
Default
File Generator
Core
HTML Generator
Directory Generator
Image Directory Generator
Fragment Extractor Generator
JSP Generator
Script Generator
Server Pages Generator
Velocity Generator
Request Generator
Status Generator
Stream Generator
Profile Generator
Error Generator
Search Generator
Optional
Php Generator
XML:DB Generator
XML:DB Collection Generator

XML:DB Generator

Generates XML documents out of an XML:DB compliant database. XML:DB is a generic API developed by the XML:DB group in order to allow access via a consistent API to the upcoming XML databases such as dbXML, Ozone and eXist (as of now only the first one has an almost compliant API implementation). For the sake of this document, an XML:DB compliant database can be seen as a filesystem where directories are called "collections" and files are called "resources".

  • Name: xmldb
  • Class: org.apache.cocoon.generation.XMLDBGenerator
  • Cacheable: no

The generator needs to be configured in a "JDBCish" way: a driver (a class name) must be provided, together with a "base" URI. An example configuration, based on the stock dbXML implementation, will look like this:

      
<map:generator  name="xmldb"  src="org.apache.cocoon.generation.XMLDBGenerator" label="content">
  <driver>org.dbxml.client.xmldb.DatabaseImpl</driver>
  <base>xmldb:dbxml:///db/</base>
</map:generator>
      
      

Note that the content of the "base" tag will be prepended to the requested resource. It's important to keep a trailing slash at the end of the base tag.


Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.