cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "E. Martens" <"mar...@web.de>
Subject modular DatabaseAction and database description file
Date Sun, 30 Apr 2006 20:02:02 GMT
Hi all, I am trying to run a query.

sitemap.xml:
  <map:action-sets>
    <map:action-set name="process">
      <map:act type="req-params">
         <map:parameter name="parameters" value="qry-node node.id"/>
         <map:act type="mod-db-qry" mode="one">
            <map:parameter name="table-set" value="querytableset"/>
            <map:parameter name="dummy" value="123"/>
         </map:act>
      </map:act>
    </map:action-set>
  </map:action-sets>

  ...

  <map:pipelines>
    <map:pipeline>
      <map:match pattern="*.html">
        <map:act set="process">
          <map:parameter name="use-request-parameters" value="true" />
        </map:act>
        <map:aggregate element="site">
           <map:part src="cocoon:/menu"/>
           <map:part src="cocoon:/body/{1}"/>
        </map:aggregate>
        <map:transform src="context://stylesheets/site-to-xhtml.xsl"/>
        <map:serialize type="html"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>

database description file:

  <table name="querytable">
    <queries>
       <query mode="others">select id from node where id=?</query>
    </queries>
    <keys>
        <key name="id"          type="int" autoincrement="true">
           <mode name="auto"    type="autoincr"/>
        </key>
    </keys>
  </table>

I don't get any errors, but as well the XSP {1} does not get any attributes. In a future version
I would like to call SQL stored procedures. Can anyone help, with may be a description or
a DTD of the database description file? Thank you, mare..at.web.de


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message