cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volkm@r" <plsdontre...@arcor.de>
Subject Re: Newbie question about XSP and XSLT
Date Tue, 10 May 2005 17:53:00 GMT
Xoan wrote:
> [...]
> It works correctly, but actually, my intention is to apply the format
> not to the <xmlcode> element, but another elements inside it. Moreover
> I only want to apply this format to the <reportId> elemnts inside
> <xmlcode>. It is possible the existence of <reportId> elements outside
> <xmlcode>, and I don't want to format them.:
> 
> <xmlcode>
>         <reportId>1</reportId>
> </xmlcode>
> 
> 
> I've tried with:
> 
> <!-- your node -->
> <xsl:template match="//xmlcode/reportId">
>  <b><xsl:copy-of select="."/></b>
> </xsl:template>
> 
> but it seems not to work. 
[...]
Then try

<xsl:template match="//xmlcode/reportId">
   <xsl:copy>
     <b>
       <xsl:apply-templates select="@*|node()"/>
     </b>
   </xsl:copy>
</xsl:template>



-- 
Volkm@r


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


Mime
View raw message