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

Query on xsl:if

Subject: Query on xsl:if
From: "Mallikarjuna Sangappa" <malliks@xxxxxxxxxxx>
Date: Mon, 16 Aug 1999 15:01:39 PDT
xsl if tag
Hi,

I'm trying to create a stylesheet to output on IE5. I'm having problem using the xsl:if tag. The following are the files.

XML File:

<?xml version="1.0"?>
<!DOCTYPE PERSON SYSTEM "PERSON.DTD"[
]>
<?xml-stylesheet type="text/xsl" href="person1.xsl" ?>
<PERSON>
<NAME NAME_VALUE="Chicago"/>
<ADDRESS><![CDATA[Hello & World]]></ADDRESS>
<CITY/>
<USER_TYPE USER_TYPE_VALUE="Hello"/>
</PERSON>

XSL File:

<?xml version="1.0"?>
<xsl:stylesheet  xmlns:xsl="http://www.w3.org/TR/WD-xsl">
 <xsl:template match="/">
   <HTML>
     <STYLE>
       TD {font-size:9pt}
     </STYLE>
     <BODY STYLE="font:9pt Verdana">
		<TABLE>
			<TR>
				<TD colspan="10" align="LEFT">
					DATE
				</TD>
				<TD colspan="15">
					TIME
				</TD>
				<TD colspan="100" ALIGN="RIGHT">
					CLAIM
				</TD>
			</TR>
		</TABLE>
		<p align="center"><xsl:value-of

select="PERSON/NAME/@NAME_VALUE"/></p>
		<xsl:if match="PERSON/NAME[@NAME_VALUE= 'Chicago']">
			Hello World
		</xsl:if>
     </BODY>
   </HTML>
 </xsl:template>
</xsl:stylesheet>

What could be wrong with the xsl:if tag which does not produce the output in IE5 while <xsl:value-of select> would output the correct value? TIA.

CU,

Malliks



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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.