[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Test an attribut in all document
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|