You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ed...@apache.org on 2001/12/07 04:42:31 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/jaxp DocumentBuilderImpl.java
edwingo 01/12/06 19:42:31
Modified: java/src/org/apache/xerces/jaxp DocumentBuilderImpl.java
Log:
Part of fix for 4549200 Xerces2 does not conform to draft JAXP 1.2 spec
Revision Changes Path
1.12 +6 -6 xml-xerces/java/src/org/apache/xerces/jaxp/DocumentBuilderImpl.java
Index: DocumentBuilderImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/DocumentBuilderImpl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DocumentBuilderImpl.java 2001/12/05 21:56:16 1.11
+++ DocumentBuilderImpl.java 2001/12/07 03:42:31 1.12
@@ -1,5 +1,5 @@
/*
- * $Id: DocumentBuilderImpl.java,v 1.11 2001/12/05 21:56:16 edwingo Exp $
+ * $Id: DocumentBuilderImpl.java,v 1.12 2001/12/07 03:42:31 edwingo Exp $
*
* The Apache Software License, Version 1.1
*
@@ -164,17 +164,17 @@
domParser.setFeature(name, ((Boolean)val).booleanValue());
} else {
// Assume property
-
- // Translate JAXP schemaLanguage property to Xerces
- // validation feature
if (JAXP_SCHEMA_LANGUAGE.equals(name)
&& W3C_XML_SCHEMA.equals(val)) {
+ // Translate JAXP schemaLanguage property to Xerces
+ // validation feature
domParser.setFeature(
Constants.XERCES_FEATURE_PREFIX +
Constants.SCHEMA_VALIDATION_FEATURE, true);
+ } else {
+ // Assume it's a Xerces property
+ domParser.setProperty(name, val);
}
-
- domParser.setProperty(name, val);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org