Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: OR Statement with ms xml [Thread Next] Re: OR Statement with ms xmlTo: NULL Date: 7/3/2005 12:26:00 PM "Han" <hp4444@k...> wrote in message news:1120255252.962612.193400@z...... > Something like, > > z:row[starts-with(a,b) or starts-with(a,c)] > It's also usual to put the translate argument into variables to make it neater. <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/> xml/rs:data/z:row[starts-with(translate(@Name,$uppercase,$lowercase),'ben')] or xml/rs:data/z:row[starts-with(translate(@Name,$uppercase,$lowercase),'beno')] If you're translating from upper to lower then your search string should be lowercase. If it starts with "beno" then presumably it also starts with "ben" :) -- Joe (MVP - XML) https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
