Author: mrglavas
Date: Tue May 26 23:25:30 2009
New Revision: 778925
URL: http://svn.apache.org/viewvc?rev=778925&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/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=778925&r1=778924&r2=778925&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Tue May 26 23:25:30 2009
@@ -270,7 +270,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]