Author: mrglavas
Date: Tue Jan 26 05:18:20 2010
New Revision: 903082
URL: http://svn.apache.org/viewvc?rev=903082&view=rev
Log:
Remove dependency on a Xerces' impl class from the samples. Many users learn
correct usage of the JAXP API from these samples. Don't want them to start
forming bad habits of relying on internals. This should be able to compile with
the JAXP API alone.
Modified:
xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java?rev=903082&r1=903081&r2=903082&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java
Tue Jan 26 05:18:20 2010
@@ -34,7 +34,6 @@
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
-import org.apache.xerces.impl.Constants;
import org.w3c.dom.Document;
import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
@@ -99,8 +98,8 @@
/** Default schema language (http://www.w3.org/2001/XMLSchema). */
protected static final String DEFAULT_SCHEMA_LANGUAGE =
XMLConstants.W3C_XML_SCHEMA_NS_URI;
- /** XSD 1.1 schema language. */
- protected static final String XSD11_SCHEMA_LANGUAGE =
Constants.W3C_XML_SCHEMA11_NS_URI;
+ /** XSD 1.1 schema language (http://www.w3.org/XML/XMLSchema/v1.1). */
+ protected static final String XSD11_SCHEMA_LANGUAGE =
"http://www.w3.org/XML/XMLSchema/v1.1";
/** Default repetition (1). */
protected static final int DEFAULT_REPETITION = 1;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]