cocoon-users mailing list archives

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

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" 
	<xsl:param name="dir"/>
	<xsl:param name="file"/>
	<xsl:template match="/">
			<xsl:variable name="doc">../reports/<xsl:value-of 
select="$dir"/>/<xsl:value-of select="$file"/>.xml</xsl:variable>
				<xsl:copy-of select="document($doc)/report/*[name()!='query']"/>
				<execute-query xmlns="">
       					select * from tblDashboard

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

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

View raw message