cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tcu...@dff.st>
Subject default template
Date Wed, 09 Aug 2000 16:17:43 GMT
I know this is slightly OT since it is more
a XSLT question... please don't yell at me ;)

I've modified the default template in
my XSP page not to copy all nodes but
to leave out the ones with a specific
attribute. Unfortunately this doesn't
work and I don't know why...

 <xsl:template match="*">
   <xsl:choose>

    <xsl:when test="@level">
     <error/>
    </xsl:when>

    <xsl:otherwise>
     <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates/>
     </xsl:copy>
    </xsl:otherwise>

   </xsl:choose>
 </xsl:template>
--
Torsten

Mime
View raw message