Test an attribut in all document

Subject: Test an attribut in all document
From: Stephane St-Denis <Stephane.St-Denis@xxxxxx>
Date: Thu, 12 Aug 1999 11:38:01 -0400
Hi everybody !

I would like to ignore section with attribut Ignore="True".

XML Document
------------
<presentation ignore="false">
 <title>Presentation</title>
 <longname ignore="true"><content>DONT DISPLAY 1</content></longname>
 <presentation>
  <longname ignore="false"><content>DISPLAY 1</content></longname>
  <presentation>
   <longname ignore="true"><content>DONT DISPLAY 2</content></longname>
  </presentation>
 </presentation>
</presentation>

XSL StyleSheet
--------------
<xsl:template match="presentation/longname">
 display longname with bold
</xsl:template>

<xsl:template match="presentation/presentation/longname">
 display longname with italic
</xsl:template>

<xsl:template match="presentation/presentation/presentation/longname">
 display longname with underline
</xsl:template>

I don't want to put a test of the attribute in all my template (example
"presentation/presentation/presentation/longname[@ignore='false']").
Is there a statement making it possible to not display the sections with
attribut "ignore=true"
anywhere in the XML document.
I try this statement :
<xsl:template match="*[@ignore='true']">
</xsl:template>
but is good only for the first level.
Thanks !!!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread