mykovalenko / legstar-cob2xsd

Automatically exported from code.google.com/p/legstar-cob2xsd
Other
0 stars 0 forks source link

Remove the limitation that orphan items are ignored #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Parse a COBOL structure that contains primitive data items not attached to a 
group. For instance:

        10  A PIC S9(4) COMP.
        10  B PIC S9(04) COMP.

What is the expected output? What do you see instead?

You get an empty XML schema without any error or warning.

Instead, it should return something like:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="unqualified">
    <xsd:element name="a">
        <xsd:simpleType>
            <xsd:restriction base="xsd:short">
                <xsd:totalDigits value="4"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="b">
        <xsd:simpleType>
            <xsd:restriction base="xsd:short">
                <xsd:totalDigits value="4"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
</xsd:schema>

Original issue reported on code.google.com by fady.mou...@gmail.com on 20 May 2012 at 7:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r206.

Original comment by fady.mou...@gmail.com on 20 May 2012 at 4:59

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 20 May 2012 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 26 May 2012 at 3:03