Thank you Charles. The only tag with a default namespace is <query>... what namespace should it be, and where do I define it?
-Robert Douglass -----Original Message----- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March, 2003 12:03 AM To: [EMAIL PROTECTED] Subject: Re: double namespace attribute Don't know why, exactly, but this has been discussed here before and the work around is to use namespace prefixes on all elements, ie don't use a default namespace in the document with the query. Something along those lines anyway. This works for me. Charles Robert Douglass wrote: >Does anyone know why my sql transformation returns an element with two xmlns >attributes? > ><rowset xmlns="http://apache.org/cocoon/SQL/2.0" >xmlns="http://apache.org/cocoon/SQL/2.0"> > >Using cocoon-2.0.4-bm14 > ><map:pipeline> ><map:match pattern="browse"> ><map:generate src="Rob/browse/browse.xml"/> ><map:transform src="Rob/browse/browse.xslt"> ><map:parameter name="use-request-parameters" value="true"/> ></map:transform> ><map:transform src="" type="sql"> ><map:parameter name="use-connection" value="sites"/> ></map:transform> ><map:serialize/> ></map:match> ></map:pipeline> > >The xml going into the sql transformation looks like this: ><execute-query xmlns="http://apache.org/cocoon/SQL/2.0"> ><query>select type from all_documents where id='4711'</query> ></execute-query> > >Thanks, > >Robert Douglass > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]