cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Maluck <tigerf...@gmx.de>
Subject sql transformer question & namespace for esql/sql
Date Sat, 14 Sep 2002 10:16:52 GMT
Hello all,

please look at the example:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:sql="http://apache.org/cocoon/SQL/2.0">

  <execute-query xmlns="http://apache.org/cocoon/SQL/2.0">
    <query>
      select name from users
    </query>
  </execute-query>
  
</page>

using the sql transformer with right parameters in the sitemap
i get this result:

<?xml version="1.0" encoding="UTF-8"?>
<page>
  <rowset xmlns="http://apache.org/cocoon/SQL/2.0"
          xmlns:sql="http://apache.org/cocoon/SQL/2.0" nrofrows="1">
    <row>
      <name> ... correct data ... </name>
    </row>
  </rowset>
</page>

but if i remove the definition of the xmlns:sql namespace as attribute
of the page-tag in the source then i get this:

<?xml version="1.0" encoding="UTF-8"?>
<page>
  <xmlns="http://apache.org/cocoon/SQL/2.0" 1="1">
    <>
      <> ... correct data ... </>
    </>
  </>
</page>

This means, the tag names are missing. I think normally i don't have to
define the xmlns:sql in my source page as it is not used there.

---

Btw. the difference in the namespace of esql and sql seems to be that the first
uses ".../v2" and the latter ".../2.0". This can be a bit confusing sometimes.
Maybe someone could change "http://apache.org/cocoon/SQL/v2" to 
"http://apache.org/cocoon/ESQL/v2".

---

Please correct me if I am wrong.

Michael

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message