You could just write a simple XSL that does this transformation. Or feed your input through sed or something.
Oleg -----Original Message----- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: RE: FW: case insensitive transformation > -----Original Message----- > From: Joseph Kesselman [mailto:[EMAIL PROTECTED] > Sent: Friday, May 28, 2004 3:32 PM > To: rlipi > Cc: [EMAIL PROTECTED] > Subject: Re: FW: case insensitive transformation > > > > > > Brief answer: No, XSLT and Xalan have no case-insensitive mode, and I > don't > think it would be appropriate to add one. > > You can achieve this result, if you really need it, by rewriting all your > match and select expressions to perform explicit string tests on node > names > in the predicates rather than using normal name-and-axis steps. For > example, you could replace "@foo" with something like > > "@*["FOO"=translate(local-name(), > "abcdefghijklmnopqrstuvwxyz", > "ABCDEFGHIJKLMNOPQRSTUVWXYZ")] > > A better answer might be to run your source document through a case- > folding > filter before styling it. > I agree. I need to transform all element and attribute names to lower case. Do you know about any particular case-folding filter that supports it? Thank you, Lipi. > An even better answer would be to fix the source document. Case is > meaningful in XML. Get used to that, because XSLT is far from the only > tool > which will complain when you're sloppy. > > > ______________________________________ > Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. > "The world changed profoundly and unpredictably the day Tim Berners Lee > got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk >
