|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] String comparisons fail unexpectedly: how can 'USA' no
Dear list, this is very frustrating! I want to pull out lots of records from a data source using a list. The data source has records that look like this: <Billcode corp="EvilEmpire" country="USA"> and the list is an html table with rows like this: <tr><td>EvilEmpire</td><td>USA</td></tr> Initially I tried using a key with use="concat(@corp,'::',@country)" but no joy, after a lot of trying things out very patiently or not so patiently I tried this: <xsl:value-of select="Billcode[2]/@country"/> <xsl:value-of select="'USA'=Billcode[2]/@country"/> and got, to my surprise, "USAfalse". There must be something important I don't know about string comparisons! I've tried wrapping things in string( )s but to no avail. Any help much appreciated, Tom SW 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
|

Cart








