Author: mrglavas
Date: Sun Oct 21 17:59:34 2012
New Revision: 1400688
URL: http://svn.apache.org/viewvc?rev=1400688&view=rev
Log:
Return true if the XML Schema 1.0 language identifier is passed to (the XML
Schema 1.0 version of) SchemaFactory.isSchemaLanguageSupported(). This was
already implemented on the XML Schema 1.1 development branch.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/Constants.java
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/Constants.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/Constants.java?rev=1400688&r1=1400687&r2=1400688&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/Constants.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/Constants.java Sun Oct 21
17:59:34 2012
@@ -38,6 +38,9 @@ public final class Constants {
public static final String NS_XMLSCHEMA =
"http://www.w3.org/2001/XMLSchema".intern();
public static final String NS_DTD =
"http://www.w3.org/TR/REC-xml".intern();
+ // Schema Versions:
+ public static final String W3C_XML_SCHEMA10_NS_URI =
"http://www.w3.org/XML/XMLSchema/v1.0".intern();
+
// sax features
/** SAX feature prefix ("http://xml.org/sax/features/"). */
Modified:
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java?rev=1400688&r1=1400687&r2=1400688&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
(original)
+++
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
Sun Oct 21 17:59:34 2012
@@ -148,7 +148,8 @@ public final class XMLSchemaFactory exte
"SchemaLanguageLengthZero", null));
}
// only W3C XML Schema 1.0 is supported
- return schemaLanguage.equals(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+ return schemaLanguage.equals(XMLConstants.W3C_XML_SCHEMA_NS_URI) ||
+ schemaLanguage.equals(Constants.W3C_XML_SCHEMA10_NS_URI);
}
public LSResourceResolver getResourceResolver() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]