"I-Lin Kuo" <[EMAIL PROTECTED]> writes:

> I've been working with Cocoon for a week. I have a simple xml page to
> be run through an SQLTransformer
> 
> ====
> <page xmlns:sql="http://apache.org/cocoon/SQL/2.0";>
> <title>SQLTransformer Test</title>
> <content>
>       <para>
>       <execute-query xmlns="http://apache.org/cocoon/SQL/2.0";>
>               <query>
>                       select  count(*) as total,
>                       sum(XID) as IDSUM
>                       from XMAN
>               </query>
>       </execute-query>
>       </para>
> </content>
> </page>
> ======
> and this is what I get back (note that xmlns is declared twice in the
> <rowset> element):
> 
> ======
> <?xml version="1.0" encoding="UTF-8"?>
> <page xmlns:sql="http://apache.org/cocoon/SQL/2.0";>
> <title>SQLTransformer Test</title>
> <content>
>       <para>
>       <rowset nrofrows="1" xmlns="http://apache.org/cocoon/SQL/2.0";
>       
>xmlns="http://apache.org/cocoon/SQL/2.0";><row><total>2</total><idsum>25</idsum></row></rowset>
> 
>       </para>
> </content>
> </page>
> =======
> Is this a bug, or did I configure something incorrectly? I can get
> around this by explicitly naming the namespace via <execute-query
> xmlns:cocsqlt="http://apache.org/cocoon/SQL/2.0";> but that's annoying.
>

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to