geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kohsuke Kawaguchi (JIRA)" <j...@apache.org>
Subject [jira] Created: (XBEAN-73) XsdGenerator generates <xs:any/> incorrectly
Date Tue, 30 Jan 2007 00:32:49 GMT
XsdGenerator generates <xs:any/> incorrectly
--------------------------------------------

                 Key: XBEAN-73
                 URL: https://issues.apache.org/jira/browse/XBEAN-73
             Project: XBean
          Issue Type: Bug
          Components: spring
    Affects Versions: 2.8
            Reporter: Kohsuke Kawaguchi


On XsdGenerator.java line 102, the code reads:

        if (complexCount > 0) {
            out.println("      <xs:sequence>");
            for (Iterator iterator = element.getAttributes().iterator(); iterator.hasNext();)
{
                AttributeMapping attributeMapping = (AttributeMapping) iterator.next();
                if (!namespaceMapping.isSimpleType(attributeMapping.getType())) {
                    generateElementMappingComplexProperty(out, namespaceMapping, attributeMapping);
                }
            }
            out.println("        <xs:any namespace='##other'/>");     // <--- PROBLEM!
            out.println("      </xs:sequence>");
        }

but it really needs to be:
            out.println("        <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded'
/>");


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message