Hi,

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

<x-tad-bigger><?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>

</x-tad-bigger>

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

TIFF image



Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to