[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Query on xsl:if
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
|
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
|