cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: Namespaces: how to get rid of them
Date Mon, 20 Jun 2005 10:48:40 GMT
Take a look at the thread 'cinclude leaves its namespace in the output XML'

:-)

Several options, but the easiest one is the one with the two XSL templates..

Cheers,
Geert

Yves Vindevogel wrote:

> 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*
> 
> 
> 
> 
> Mail: yves.vindevogel@implements.be - Mobile: +32 (478) 80 82 91
> 
> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> 
> Web: http://www.implements.be
> /
> First they ignore you. Then they laugh at you. Then they fight you. Then 
> you win.
> Mahatma Ghandi./
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message