cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: the XSP tags repeats in the HTML output after a XSL transformation
Date Thu, 10 Apr 2003 06:20:56 GMT
But do I have to isert the template inside the other template? Because
the first template  has a table, and if I add the new template after the
"ban_title" wont be inside my table :

<xsl:template="banner">
<table>
...
<xsl:value-of select="ban_title"/>
...
</table>
</xsl:template>


-----Original Message-----
From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de] 
Sent: Wednesday, April 09, 2003 6:11 PM
To: cocoon-users@xml.apache.org
Subject: Re: the XSP tags repeats in the HTML output after a XSL
transformation


That's correct. The first one comes out of <xsl:value-of/>, the second 
one by <xsl:apply-templates/> and processing <ban_title/> with the 
default template.

Simply remove the <xsl:value-of select="ban_title"/> and add a further 
template

<xsl:template match="ban_title">
   <xsl:value-of select="."/>
</xsl:template>

Regards,

Joerg

Maxime.Gheysen@swisscom.com wrote:
> I have in my XSP page a structure like :
> 
> <banner>
> <ban_title>aaa</ban_title>
> ...
> </banner>
> ...
> 
> In my XSL something like :
> 
> <xsl:template match="banner">
> ...
> <xsl:value-of select="ban_title"/>
> ...
> <xsl:apply-templates/>
> </xsl:template>
> 
> the HTML output returns me the transformed "ban_title", but repeats it
:
> aaa <--transformed
> aaa <--default text


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


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


Mime
View raw message