vgritsenko 02/03/22 05:53:34 Added: src/java/org/apache/cocoon/components/source xmldb.xconf src/java/org/apache/cocoon/generation xmldb.xmap xmldb.xpipe Removed: src/java/org/apache/cocoon/generation xindice.xmap xmldb-generators.xpipe xmldb.xconf Log: Move xmldb configs to appropriate dirs Revision Changes Path 1.1 xml-cocoon2/src/java/org/apache/cocoon/components/source/xmldb.xconf Index: xmldb.xconf =================================================================== <?xml version="1.0"?> <xconf xpath="/cocoon/source-handler" unless="protocol[@name='xmldb']"> <!-- xmldb pseudo protocol --> <protocol name="xmldb" class="org.apache.cocoon.components.source.XMLDBSourceFactory"> <!-- Xindice driver --> <driver type="xindice" class="org.apache.xindice.client.xmldb.DatabaseImpl"/> <!-- Add here other XML:DB compliant databases drivers --> </protocol> </xconf> 1.1 xml-cocoon2/src/java/org/apache/cocoon/generation/xmldb.xmap Index: xmldb.xmap =================================================================== <?xml version="1.0"?> <xmap xpath="/sitemap/components/generators" unless="generator[@name='xmldb']"> <!-- =================== XML:DB Generators ========================= --> <!-- BEWARE: these are unmaintained XML:DB generators, going to be --> <!-- removed soon. --> <!-- You might want to use the XML:DB pseudo protocol instead. --> <map:generator name="xmldb" src="org.apache.cocoon.generation.XMLDBGenerator" label="content,data"> <driver>org.apache.xindice.client.xmldb.DatabaseImpl</driver> <base>xmldb:xindice:///db/</base> </map:generator> <map:generator name="xmldbcollection" src="org.apache.cocoon.generation.XMLDBCollectionGenerator" label="content,data"> <driver>org.apache.xindice.client.xmldb.DatabaseImpl</driver> <base>xmldb:xindice:///db/</base> </map:generator> </xmap> 1.1 xml-cocoon2/src/java/org/apache/cocoon/generation/xmldb.xpipe Index: xmldb.xpipe =================================================================== <?xml version="1.0"?> <xpipe xpath="/sitemap/pipelines/pipeline[@id='optional']" unless="match[@pattern='xmldb-generator/db/**/']"> <!-- =================== XML:DB Generators ========================= --> <!-- BEWARE: the following examples use the unmaintained XML:DB --> <!-- generators, going to be deprecated soon. --> <!-- You might want to use the XML:DB pseudo protocol instead. --> <map:match pattern="xmldb-generator/db/**/"> <map:generate type="xmldbcollection" src="/{1}"/> <map:serialize type="xml"/> </map:match> <map:match pattern="xmldb-generator/db/**"> <map:generate type="xmldb" src="/{1}"/> <map:serialize type="xml"/> </map:match> </xpipe>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]