|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: String-length of substring-before is giving me wro
> Sorry, stupid question, but what is the best way make it > case-insensitive? No easy way in XSLT 1.0. You can use the translate($x, 'abc...', 'ABC...') trick for matching, but not for substring-before if you want the answer to retain the original case. Switch to XSLT 2.0 and the world is your oyster. You can then use replace($in, '(^.*)xxx', '$1', 'i'), or you can use substring-before with a case-blind collation if your vendor offers one (Saxon does, of course). Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







