xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XSL If Statement - Repost


Subject: RE: [xsl] XSL If Statement - Repost
From: sumit patki <sumitpatki@xxxxxxxxxxx>
Date: Fri, 22 Aug 2008 13:35:52 +0000

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor