cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Duplicate namespace in SQL transformer
Date Sat, 18 Jun 2005 19:57:27 GMT
Hi,

I have a very simple page in XSL that I put through the SQL transformer.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:param name="dir"/>
	<xsl:param name="file"/>
	
	<xsl:template match="/">
		<report>
			<xsl:variable name="doc">../reports/<xsl:value-of 
select="$dir"/>/<xsl:value-of select="$file"/>.xml</xsl:variable>
			
			<layout>			
				<xsl:copy-of select="document($doc)/report/*[name()!='query']"/>
			</layout>
			
			<dashboard>
				<execute-query xmlns="http://apache.org/cocoon/SQL/2.0">
       				<query>
       					select * from tblDashboard
       				</query>
     				</execute-query>
			</dashboard>
		</report>
	</xsl:template>
</xsl:stylesheet>


However, I get an error:
XML Parsing Error: duplicate attribute

The output in my browser is this, so it's logical that the error occurs.
<dashboard><rowset xmlns="http://apache.org/cocoon/SQL/2.0" 
xmlns="http://apache.org/cocoon/SQL/2.0"><row>


I need to add the namespace, or otherwise my query is not executed.
However, it appearing twice is killing my XML ...

Any solution ??


Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements


Mime
View raw message