cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Domenichini" <gabrid...@fastmail.fm>
Subject Cocoon-2.0.4 possible bug in Sql transformer
Date Wed, 11 Dec 2002 09:07:23 GMT
Cocoon-2.0.4 seems to repeat namespace declaration in the sql:rowset
element resulting from a sql transformation launching a stored procedure.

I have cocoon 2.0.3 and cocoon 2.0.4 side by side on the same machine.

I call an Oracle stored procedure with SQL transformer
With this code:
    <execute-query xmlns="http://apache.org/cocoon/SQL/2.0">
        <query lang="1" isstoredprocedure="true">
      begin dbchem.scheda_xml('1',?,'30060','1',''); end;
        </query>
        <out-parameter sql:nr="1" sql:name="resultset2"
        sql:type="java.sql.Types.CHAR"/>
</execute-query>
And I obtain this
<?xml version="1.0" encoding="UTF-8"?>
<content>
<sql:rowset xmlns:sql="http://apache.org/cocoon/SQL/2.0">
    <sql:resultset2>: 
        content of the out parameter
    </sql:resultset2>
</sql:rowset>
</content>

If I use the same invocation on cocoon 2.0.4
I get this error from the same browser (MSIE):

Duplicate attribute. Line 10, Position 52 
 

  <rowset xmlns="http://apache.org/cocoon/SQL/2.0"
  xmlns="http://apache.org/cocoon/SQL/2.0"><resultset2>: 
---------------------------------------------------^
My system
- jre 
version 1.4.1 
java-vendor Sun Microsystems Inc. 

- operating-system 
name Windows 2000 
architecture x86 
version 5.0 
 
If you confirm I could compile a bug even if It would be my first.
-- 
  Gabriele Domenichini
  gabridome@fastmail.fm

---------------------------------------------------------------------
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