frankframework / frank-doc

Frank!Doc
https://frankdoc.frankframework.org
Apache License 2.0
4 stars 5 forks source link

Invalid XSDs generated #100

Closed gvanbrakel closed 2 years ago

gvanbrakel commented 2 years ago

XSD generated by frank-doc version 1.1-SNAPSHOT are illegal. In both generated XSDs there is a duplicate attribute name in XComSenderDeclaredAttributeGroup. One is from XComSenderDeclaredAttributeGroup itself, the other from SenderBaseDeclaredAttributeGroup

The schema doesn't appear to be valid by itself (as a part of another schema, it might still be OK).
    The complex type definition 'XComSenderType' already has an attribute 'name'.
        Reason: The following attribute declarations are duplicates of 'name' (see below)
            'name'
        Error location: xs:schema / xs:attributeGroup / xs:attribute
        Details
            ct-props-correct.4: The complex type definition 'XComSenderType' already has an attribute 'name'.
    Only one attribute declaration 'name' is allowed within the attribute group definition 'XComSenderCumulativeAttributeGroup'.
        Reason: The following attribute declarations are duplicates of 'name' (see below)
            'name'
        Error location: xs:schema / xs:attributeGroup / xs:attribute
        Details
            ag-props-correct.2: Only one attribute declaration 'name' is allowed within the attribute group definition 'XComSenderCumulativeAttributeGroup'.
    The complex type definition '{anonymous}' already has an attribute 'name'.
        Reason: The following attribute declarations are duplicates of 'name' (see below)
            'name'
        Error location: xs:schema / xs:attributeGroup / xs:attribute
        Details
            ct-props-correct.4: The complex type definition '{anonymous}' already has an attribute 'name'.
    The complex type definition '{anonymous}' already has an attribute 'name'.
        Reason: The following attribute declarations are duplicates of 'name' (see below)
            'name'
        Error location: xs:schema / xs:attributeGroup / xs:attribute
        Details
            ct-props-correct.4: The complex type definition '{anonymous}' already has an attribute 'name'.
mhdirkse commented 2 years ago

Should have been fixed by #102 and #103.