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

RE: XSL If Statement - Repost

Subject: RE: XSL If Statement - Repost
From: sumit patki <sumitpatki@xxxxxxxxxxx>
Date: Fri, 22 Aug 2008 13:35:52 +0000
RE:  XSL If Statement - Repost
Hi,
I have a XSL file which is used to format 100s of xml files. The XSL
converts xml to html.I need to display table in HTML output only if
certain data is present in XML.


In the below code, I need to display the HTML table only if the XML
has matrix tag with 1 in it. Matrix tag will be present only in few
xmls which use the xsl.I tried the below code but none of the options
worked.

XSL:
xsl:for-each select="topic/detail">

xsl:if test="$matrix=1"     OR
xsl:if test="matrix=1"       OR
xsl:if match=".[matrix=1]"

table border="2">
tr>
.
.
.
.
XML:
topic>
    detail>
         matrix>1
         .
         .
         .

_________________________________________________________________
>From salsa lessons to filmy gossip, news to music concerts - watch it all on
MSN Video
http://video.msn.com/?mkt=en-in

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-2011 All Rights Reserved.