xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Kesselman <kesh...@us.ibm.com>
Subject Re: FW: case insensitive transformation
Date Fri, 28 May 2004 13:31:31 GMT

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


A better answer might be to run your source document through a case-folding
filter before styling it.

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

View raw message