[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xsl test auf attribut
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.