You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by aj...@apache.org on 2007/04/06 08:58:55 UTC

svn commit: r526074 - /webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

Author: ajith
Date: Thu Apr  5 23:58:54 2007
New Revision: 526074

URL: http://svn.apache.org/viewvc?view=rev&rev=526074
Log:
1. Fixed the issues mentioned in https://issues.apache.org/jira/browse/WSCOMMONS-24  - Yet to add formal test cases

Modified:
    webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java?view=diff&rev=526074&r1=526073&r2=526074
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java Thu Apr  5 23:58:54 2007
@@ -169,12 +169,14 @@
 
             } else if (el.getLocalName().equals("group")) {
                 XmlSchemaGroup group = handleGroup(schema, el, schemaEl);
-                schema.groups.collection.put(group.name, group);
+                schema.groups.collection.put(
+                        new QName(schema.getTargetNamespace(), group.name), group);
                 schema.items.add(group);
             } else if (el.getLocalName().equals("attributeGroup")) {
                 XmlSchemaAttributeGroup group = handleAttributeGroup(schema,
                         el, schemaEl);
-                schema.attributeGroups.collection.put(group.name, group);
+                schema.attributeGroups.collection.put(
+                        new QName(schema.getTargetNamespace(), group.name), group);
                 schema.items.add(group);
             } else if (el.getLocalName().equals("attribute")) {
                 XmlSchemaAttribute attr = handleAttribute(schema,
@@ -187,7 +189,8 @@
                 schema.includes.add(redefine);
             } else if (el.getLocalName().equals("notation")) {
                 XmlSchemaNotation notation = handleNotation(el);
-                schema.notations.collection.put(notation.name, notation);
+                schema.notations.collection.put(
+                        new QName(schema.getTargetNamespace(), notation.name), notation);
                 schema.items.add(notation);
             } else if (el.getLocalName().equals("annotation")) {
                 XmlSchemaAnnotation annotation = handleAnnotation(el);



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