Christoff Schmitz created XMLBEANS-607:
------------------------------------------

             Summary: Generated XSD invalid
                 Key: XMLBEANS-607
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-607
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: Version 5.0.3, Version 2.6
         Environment: JDK 16
            Reporter: Christoff Schmitz
         Attachments: sbpTest.xbrl

Generating XSD files for the attached file results in several errors.

Options set: Design = Russian Doll, Use Enumerations: never

1) When generating SchemaDocument[] with inst2xsd, and validating afterwards, 
Validation fails

2) Element context has sub element scenario (on 2nd occurrence of the context 
element). The corresponding XSD does not state that there might be an element 
named scenario. When adding the scenario element also to first occurrence, the 
result is as expected. Seems like only the first element is considered for xsd 
generation.

3) For element eba_met:ei470 (also others affected), the generated XSD states 
that there might be elements named entity, period and scenario below. In the 
XML file used to generate, there is nothing below the only occurrence: 
<eba_met:ei470 id="C_113.00_I5" 
contextRef="context56">eba_ZZ:x409</eba_met:ei470>. I did not expect a sequence 
of elements below the complex type.

 

As the affected elements of 3) are on same level as the context element (which 
in fact has the elements listed in error for 3)) it seems that the contents of 
sibling elements get mixed up here.

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to