cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/generation xmldb.xmap xmldb.xpipe xindice.xmap xmldb-generators.xpipe xmldb.xconf
Date Fri, 22 Mar 2002 13:53:35 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message