Query on xsl:if

Subject: Query on xsl:if
From: "Mallikarjuna Sangappa" <malliks@xxxxxxxxxxx>
Date: Mon, 16 Aug 1999 15:01:39 PDT
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