Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XPath Select on Strings XPath Select on StringsTo: NULL Date: 9/3/2004 6:57:00 PM I've run into a rather frustrating idiosyncrasy and would greatly appreciate any insight. I'm using XPath expressions in an XSLT for-each tag to filter data and show subsets of an XML data island to the user. I'm using IE 6.0 SP1 and creating the XML data island with an in-line XML tag. The following XPath expression works great: NewDataSet/Table[Group = 'Group A'] This XPath expression returns nothing: NewDataSet/Table[Group >= 'Group A'] My XML data island also contains an integer field, and XPath relational expressions work great there. I just seem to have a problem with the string fields. Anybody have any ideas? Thanks in advance... Portion of my XML data island: <NewDataSet> <Table> <Year>2004</Year> <Group>Group A</Group> </Table> <Table> <Year>2004</Year> <Group>Group B</Group> </Table> <Table> <Year>2004</Year> <Group>Group C</Group> </Table> </NewDataSet> Portion of the XSL I'm using for the transform: <xsl:template match="/"> <table border="1" bordercolor="Black" cellpadding="2" cellspacing="0"> <xsl:for-each select="NewDataSet/Table[Group >= 'Group C']"> <tr> <td><nobr><xsl:value-of select="Year"/></nobr></td> <td><nobr><xsl:value-of select="Group"/></nobr></td> </tr> </xsl:for-each> </table> </xsl:template> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
