Author: mrglavas
Date: Sat Feb 25 14:10:00 2006
New Revision: 381004
URL: http://svn.apache.org/viewcvs?rev=381004&view=rev
Log:
Fixing JIRA Bug #1141:
http://issues.apache.org/jira/browse/XERCESJ-1141
The "root-type-definition" property was not read by the schema validator during
reset.
If the schema validator is not in the pipeline when the property is set the
schema
validator will never read the value from the configuration. This bug is fixed
thanks
to the patch from Peter McCracken.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL:
http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=381004&r1=381003&r2=381004&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Sat
Feb 25 14:10:00 2006
@@ -1406,6 +1406,13 @@
fValidationManager.addValidationState(fValidationState);
fValidationState.setSymbolTable(fSymbolTable);
+ try {
+ fRootTypeQName =
(javax.xml.namespace.QName)componentManager.getProperty(ROOT_TYPE_DEF);
+ }
+ catch (XMLConfigurationException e) {
+ fRootTypeQName = null;
+ }
+
boolean ignoreXSIType;
try {
ignoreXSIType = componentManager.getFeature(IGNORE_XSI_TYPE);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]