mrglavas 2004/01/05 13:54:58 Modified: java/src/org/apache/xerces/impl XMLScanner.java Log: Fixing an edge case. We should reject PIs at the start of an entity whose targets are of the form 'xml:foo' when namespace support is enabled. Revision Changes Path 1.41 +9 -2 xml-xerces/java/src/org/apache/xerces/impl/XMLScanner.java Index: XMLScanner.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLScanner.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- XMLScanner.java 16 Dec 2003 21:37:10 -0000 1.40 +++ XMLScanner.java 5 Jan 2004 21:54:58 -0000 1.41 @@ -2,7 +2,7 @@ * The Apache Software License, Version 1.1 * * - * Copyright (c) 1999-2003 The Apache Software Foundation. + * Copyright (c) 1999-2004 The Apache Software Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1354,6 +1354,13 @@ protected boolean isValidNameStartChar(int value) { return (XMLChar.isNameStart(value)); } // isValidNameStartChar(int): boolean + + // returns true if the given character is + // a valid NCName character with respect to the version of + // XML understood by this scanner. + protected boolean isValidNCName(int value) { + return (XMLChar.isNCName(value)); + } // isValidNCName(int): boolean // returns true if the given character is // a valid high surrogate for a nameStartChar
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]