Return-Path:
IMPLEMENTATION NOTE - A bug in Xerces 2.0.2 > prevents > - * the support of XML schema. You need Xerces 2.1 or JAXP 1.2.1 to make > - * that class working with XML schema
> + * the support of XML schema. You need Xerces 2.1-2.3 and higher or > + * JAXP 1.2.1 to make that class working with XML schema > * > * @author Craig McClanahan > * @author Scott Sanders > - * @author Jean-Francois Arcand > * @version $Revision: 1.81 $ $Date: 2003/08/13 22:05:31 $ > */ > > @@ -224,20 +223,6 @@ > */ > protected SAXParserFactory factory = null; > > - > - /** > - * The JAXP 1.2 property required to set up the schema location. > - */ > - private static final String JAXP_SCHEMA_SOURCE = > - "http://java.sun.com/xml/jaxp/properties/schemaSource"; > - > - /** > - * The JAXP 1.2 property to set up the schemaLanguage used. > - */ > - protected String JAXP_SCHEMA_LANGUAGE = > - "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; > - > - > /** > * The Locator associated with our parser. > */ > @@ -308,19 +293,6 @@ > */ > protected Rules rules = null; > > - /** > - * The XML schema language to use for validating an XML instance. By > - * default this value is set toW3C_XML_SCHEMA
> - */
> - protected String schemaLanguage = W3C_XML_SCHEMA;
> -
> -
> - /**
> - * The XML schema to use for validating an XML instance.
> - */
> - protected String schemaLocation = null;
> -
> -
> /**
> * The object stack being constructed.
> */
> @@ -354,14 +326,6 @@
> LogFactory.getLog("org.apache.commons.digester.Digester.sax");
>
>
> - /**
> - * The schema language supported. By default, we use this one.
> - */
> - protected static final String W3C_XML_SCHEMA =
> - "http://www.w3.org/2001/XMLSchema";
> -
> -
> -
> // -------------------------------------------------------------
> Properties
>
> /**
> @@ -689,15 +653,6 @@
> return (null);
> }
>
> - // Configure standard properties and return the new instance
> - try {
> - if (schemaLocation != null) {
> - setProperty(JAXP_SCHEMA_LANGUAGE, schemaLanguage);
> - setProperty(JAXP_SCHEMA_SOURCE, schemaLocation);
> - }
> - } catch (Exception e) {
> - log.warn("" + e);
> - }
> return (parser);
>
> }
> @@ -798,50 +753,6 @@
>
>
> /**
> - * Return the XML Schema URI used for validating an XML instance.
> - */
> - public String getSchema() {
> -
> - return (this.schemaLocation);
> -
> - }
> -
> -
> - /**
> - * Set the XML Schema URI used for validating a XML Instance.
> - *
> - * @param schemaLocation a URI to the schema.
> - */
> - public void setSchema(String schemaLocation){
> -
> - this.schemaLocation = schemaLocation;
> -
> - }
> -
> -
> - /**
> - * Return the XML Schema language used when parsing.
> - */
> - public String getSchemaLanguage() {
> -
> - return (this.schemaLanguage);
> -
> - }
> -
> -
> - /**
> - * Set the XML Schema language used when parsing. By default, we use
> W3C.
> - *
> - * @param schemaLanguage a URI to the schema language.
> - */
> - public void setSchemaLanguage(String schemaLanguage){
> -
> - this.schemaLanguage = schemaLanguage;
> -
> - }
> -
> -
> - /**
> * Return the boolean as to whether the context classloader should
> be used.
> */
> public boolean getUseContextClassLoader() {
> @@ -1399,8 +1310,8 @@
> entityURL = (String) entityValidator.get(publicId);
> }
>
> - // Redirect the schema location to a local destination
> - if (schemaLocation != null && entityURL == null && systemId !=
> null){
> + // Redirect the dtd/schema location to a local destination
> + if (entityURL == null && systemId != null){
> entityURL = (String)entityValidator.get(systemId);
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org