Hi
Please find the patch for class XMLParser.
Exception was being thrown for feature "
http://apache.org/xml/features/validation/schema-full-checking" , when tries to
get
the value of feature.
Following features are not documented in Feature List.
http://apache.org/xml/features/validation/default-attribute-values
http://apache.org/xml/features/validation/validate-content-models
http://apache.org/xml/features/validation/validate-datatypes
Cheers,
Arun.
Sun Microsystem, Inc.
Index: XMLParser.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/framework/Attic/XMLParser.java,v
retrieving revision 1.33
diff -u -w -r1.33 XMLParser.java
--- XMLParser.java 2001/06/25 18:07:51 1.33
+++ XMLParser.java 2001/11/13 11:18:19
@@ -126,9 +126,6 @@
"http://apache.org/xml/features/validation/schema",
"http://apache.org/xml/features/validation/schema-full-checking",
"http://apache.org/xml/features/validation/dynamic",
- "http://apache.org/xml/features/validation/default-attribute-values",
- "http://apache.org/xml/features/validation/validate-content-models",
- "http://apache.org/xml/features/validation/validate-datatypes",
"http://apache.org/xml/features/validation/warn-on-duplicate-attdef",
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef",
"http://apache.org/xml/features/allow-java-encodings",
@@ -1337,26 +1334,12 @@
return;
}
//
- // http://apache.org/xml/features/validation/default-attribute-values
- //
- if (feature.equals("validation/default-attribute-values")) {
- // REVISIT
- throw new SAXNotSupportedException(featureId);
- }
- //
// http://apache.org/xml/features/validation/normalize-attribute-values
//
if (feature.equals("validation/normalize-attribute-values")) {
setNormalizeAttributeValues(state);
}
//
- // http://apache.org/xml/features/validation/validate-content-models
- //
- if (feature.equals("validation/validate-content-models")) {
- // REVISIT
- throw new SAXNotSupportedException(featureId);
- }
- //
//
http://apache.org/xml/features/validation/nonvalidating/load-dtd-grammar
//
if (feature.equals("nonvalidating/load-dtd-grammar")) {
@@ -1370,14 +1353,6 @@
setLoadExternalDTD(state);
return;
}
-
- //
- // http://apache.org/xml/features/validation/default-attribute-values
- //
- if (feature.equals("validation/validate-datatypes")) {
- // REVISIT
- throw new SAXNotSupportedException(featureId);
- }
//
// http://apache.org/xml/features/validation/warn-on-duplicate-attdef
// Emits an error when an attribute is redefined.
@@ -1498,6 +1473,13 @@
return getValidationSchema();
}
//
+ // http://apache.org/xml/features/validation/schema-full-checking
+ // Lets the user turn Schema full constraint checking on/off.
+ //
+ if (feature.equals("validation/schema-full-checking")) {
+ return getValidationSchemaFullChecking();
+ }
+ //
// http://apache.org/xml/features/validation/dynamic
// Allows the parser to validate a document only when it
// contains a grammar. Validation is turned on/off based
@@ -1507,20 +1489,6 @@
return getValidationDynamic();
}
//
- // http://apache.org/xml/features/validation/default-attribute-values
- //
- if (feature.equals("validation/default-attribute-values")) {
- // REVISIT
- throw new SAXNotRecognizedException(featureId);
- }
- //
- // http://apache.org/xml/features/validation/validate-content-models
- //
- if (feature.equals("validation/validate-content-models")) {
- // REVISIT
- throw new SAXNotRecognizedException(featureId);
- }
- //
// http://apache.org/xml/features/nonvalidating/load-dtd-grammar
//
if (feature.equals("nonvalidating/load-dtd-grammar")) {
@@ -1533,13 +1501,6 @@
return getLoadExternalDTD();
}
//
- // http://apache.org/xml/features/validation/validate-datatypes
- //
- if (feature.equals("validation/validate-datatypes")) {
- // REVISIT
- throw new SAXNotRecognizedException(featureId);
- }
- //
// http://apache.org/xml/features/validation/warn-on-duplicate-attdef
// Emits an error when an attribute is redefined.
//
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]