Arnaud Vandyck wrote: > With the new xml patches, what is the score of the xml tests?
With this patch, the current conformance is 98.15%. This corrects when to
test for the Char and when to test for the RestrictedChar production in
XML 1.1 entities.
2006-01-12 Chris Burdess <[EMAIL PROTECTED]>
* gnu/xml/stream/XMLParser.java: Corrected the handling of some XML
1.1 character ranges.
--
Chris Burdess
"They that can give up essential liberty to obtain a little safety
deserve neither liberty nor safety." - Benjamin Franklin
Index: gnu/xml/stream/XMLParser.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/stream/XMLParser.java,v
retrieving revision 1.20
diff -u -r1.20 XMLParser.java
--- gnu/xml/stream/XMLParser.java 12 Jan 2006 16:35:52 -0000 1.20
+++ gnu/xml/stream/XMLParser.java 12 Jan 2006 20:48:15 -0000
@@ -1357,7 +1357,7 @@
throw new EOFException();
else if (input.xml11)
{
- if (!isXML11Char(c))
+ if (!isXML11Char(c) || isXML11RestrictedChar(c))
error("illegal XML 1.1 character",
"U+" + Integer.toHexString(c));
}
@@ -3097,7 +3097,7 @@
default:
if (input.xml11)
{
- if (!isXML11Char(c))
+ if (!isXML11Char(c) || isXML11RestrictedChar(c))
error("illegal XML 1.1 character",
"U+" + Integer.toHexString(c));
}
pgpkyuYHKVN52.pgp
Description: PGP signature
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
