stefano 2003/02/17 10:28:16 Added: src/blocks/xmldb/conf xmldb.deprecated.samplesxpipe xmldb.deprecated.xmap xmldb.samplesxpipe xmldb.xconf Log: creating xmldb block Revision Changes Path 1.1 xml-cocoon2/src/blocks/xmldb/conf/xmldb.deprecated.samplesxpipe Index: xmldb.deprecated.samplesxpipe =================================================================== <?xml version="1.0"?> <samplesxpipe 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> </samplesxpipe> 1.1 xml-cocoon2/src/blocks/xmldb/conf/xmldb.deprecated.xmap Index: xmldb.deprecated.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/blocks/xmldb/conf/xmldb.samplesxpipe Index: xmldb.samplesxpipe =================================================================== <?xml version="1.0"?> <samplesxpipe xpath="/sitemap/pipelines/pipeline[@id='optional']" unless="match[@pattern='xmldb/**']"> <!-- ======================= XML:DB ============================== --> <map:match pattern="xmldb/**"> <map:match type="request-parameter" pattern="xpath"> <map:generate src="xmldb:xindice://localhost:4080/db/{../1}#{1}"/> <map:serialize type="xml"/> </map:match> <map:generate src="xmldb:xindice://localhost:4080/db/{1}"/> <map:serialize type="xml"/> </map:match> </samplesxpipe> 1.1 xml-cocoon2/src/blocks/xmldb/conf/xmldb.xconf Index: xmldb.xconf =================================================================== <?xml version="1.0"?> <xconf xpath="/cocoon/source-factories" unless="component-instance[@name='xmldb']"> <!-- xmldb pseudo protocol --> <component-instance class="org.apache.cocoon.components.source.impl.SourceFactoryWrapper" name="xmldb"> <source-factory 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 --> </source-factory> </component-instance> </xconf>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]