[XSL-LIST Mailing List Archive Home]
Re: [xsl] IGNORE CASE IN XSLT
Subject: Re: [xsl] IGNORE CASE IN XSLT|
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Thu, 02 Dec 2004 07:16:36 +0100
It will not help a lot if one cannot predict the use of case in
element names. :-( Especially documents that originate from HTML of
SGML have this problem, as HTML and SGML are case insensitive...
It even gets worse if you have to account for ancestors as wel... :-(
It would have been nice if the XSL standard would have provided a case
sensitivity option. But on the other hand, it is actually more a job
for XML parsers. Are there XML Parsers that have an option to ignore
case of the input? (not using a declaration file)
Not as such (such would be an XML+ parser of a kind, not a conformant
XML processor), though you might be able to use an SGML parser.
2nd person to mention this..
XML+ yes, but I wouldn't say that the parser is violating the recommendation. It is an option, so it
is up to the user to violate the XML rec...
Reconsidering my remarks, I don't think the ignore-case option is sufficient. Too often SGML and
HTML are not well-formed. One indeed would be better off with an SGML parser.
Anyone knows a Java implementation?