Author: mrglavas
Date: Tue May 26 23:25:08 2009
New Revision: 778924
URL: http://svn.apache.org/viewvc?rev=778924&view=rev
Log:
Fixing a bug. We weren't assigning an anonymous type to the list type of
xsi:schemaLocation. This string would be returned from DOM
TypeInfo.getTypeName() and shouldn't be null.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=778924&r1=778923&r2=778924&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Tue May
26 23:25:08 2009
@@ -248,7 +248,10 @@
// xsi:schemaLocation
name = SchemaSymbols.XSI_SCHEMALOCATION;
tns = SchemaSymbols.URI_XSI;
- type = schemaFactory.createTypeList(null,
SchemaSymbols.URI_XSI, (short)0, anyURI, null);
+ type =
schemaFactory.createTypeList("#AnonType_schemaLocation", SchemaSymbols.URI_XSI,
(short)0, anyURI, null);
+ if (type instanceof XSSimpleTypeDecl) {
+ ((XSSimpleTypeDecl)type).setAnonymous(true);
+ }
fGlobalAttrDecls.put(name, new BuiltinAttrDecl(name, tns,
type, scope));
// xsi:noNamespaceSchemaLocation
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]