MichielCM / xsd2html2xml

Generates plain HTML5 forms from XML schemas (XSDs). Transforms filled-in forms into XML.
MIT License
95 stars 42 forks source link

Multiple imported groups are not populated correctly #12

Open MichielCM opened 5 years ago

MichielCM commented 5 years ago

If the same group is referenced multiple times in the document (in the same hierarchical position) it is not populated correctly from an XML document. This should be fixed in the html-populators JavaScript file.

For example, XSD: <xs:group ref="myGroup" minOccurs="0" maxOccurs="unbounded" /> ... <xs:group ref="myGroup" minOccurs="0" maxOccurs="unbounded" />

XML: <myGroupItem>0</myGroupItem> ... <myGroupItem>1</myGroupItem> <myGroupItem>2</myGroupItem> <myGroupItem>3</myGroupItem>