You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2010/01/26 06:18:21 UTC

svn commit: r903082 - /xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java

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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Re: svn commit: r903082 - /xerces/java/branches/xml-schema-1.1-dev/samples/jaxp/SourceValidator.java

Posted by Mukul Gandhi <mu...@apache.org>.
Hi Michael,
   I agree to this.

I was actually thinking to do like this, but wanted to have your
opinion on this. You've rightly corrected this :)

> 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.



-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org