cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Namespaces: how to get rid of them
Date Mon, 20 Jun 2005 10:34:03 GMT
Hi,

Is there a way I can prevent the namespaces to be included in my 
resulting document ?
See my code below and the result it generates.
I don't want the namespace to show up

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:sql="http://apache.org/cocoon/SQL/2.0">
	<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>
				<sql:execute-query>
       				<sql:query>
       					select * from tblDashboard
       				</sql:query>
     				</sql:execute-query>
			</dashboard>
		</report>
	</xsl:template>
</xsl:stylesheet>


<report xmlns:sql="http://apache.org/cocoon/SQL/2.0"><layout></layout>
<data><rowset xmlns="http://apache.org/cocoon/SQL/2.0"> ....


Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements


Mime
View raw message