-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDDTool does not handle "unbounded" maximum cardinality in Choice blocks correctly #180
Comments
…cks correctly. LDDTool does not handle "unbounded" maximum cardinality in Choice blocks correctly. When defining a Choice block in Ingest_LDD, the character "*" is used as a value to represent an unlimited upper bound for cardinality. This value needs to be converted to "unbounded" when writing to an XML SChema file. This error only occurred in the case of the Choice block. Resolves #180
…cks correctly. (#181) LDDTool does not handle "unbounded" maximum cardinality in Choice blocks correctly. When defining a Choice block in Ingest_LDD, the character "*" is used as a value to represent an unlimited upper bound for cardinality. This value needs to be converted to "unbounded" when writing to an XML SChema file. This error only occurred in the case of the Choice block. Resolves #180
Does anyone have a sample Ingest_LDD (like the one for geom) that creates an ldd with a choice? I don't have one. Thanks |
The Geometry LDD is the LDD where the issue was found and the one I used for testing. I use the posted version. I do not know of another. |
Thanks, Steve, I don't get it. Can you give me an example of lddtool running into this? |
Here is Ed's message. He used "" to represent "unbounded" as the value of maxOccurs in the Ingest_LDD file. This is correct. However, LDDTool wrote "maxOccurs=""" instead of correctly writing "maxOccurs="unbounded" in the XML Schema file. Steve, I am having an issue with updating the geometry dictionary using the version of LDDtool that was built with model 1.13.0.0. The class below has a choice block where the maximum_occurences should be unbounded. Previous versions of lddtool worked with using a '*' in the ingest file.
However, this version of lddtool generates the class definition below with a '' for maxOccurs. The '' seems to still work for simple attributes. What should the ingest file look like? <xs:complexType name="Derived_Geometry"> |
LDDTool does not handle "unbounded" maximum cardinality in Choice blocks correctly.
When defining a Choice block in Ingest_LDD, the character "*" is used as a value to represent an unlimited upper bound for cardinality. This value needs to be converted to "unbounded" when writing to an XML SChema file. This error only occurred in the case of the Choice block.
Expected output from the Geometry LDD. See maxOccurs="unbounded" below.
</xs:complexType>
The text was updated successfully, but these errors were encountered: