XML element vs attribute in Ladon custom types
Hi,
I have some questions about XML schemas that contain elements with attributes, such as this example: http://
This is my attempt to map the above to Ladon types: http://
1. how to tell Ladon which items are elements and which ones are attributes?
2. related to the above, optional attributes are marked with 'use="optional"', while optional elements are marked as 'minOccurs="0"'. How can this be expressed in Ladon terminology? (example of such a schema http://
3. some standard types such as "xs:NCName" have no mapping in Ladon, so I chose to declare it as a string. The plan is to create a filter function that will be applied to the input data, it will verify that the string corresponds to NCName requirements (it must not contain ':'). Is this the best approach?
Having reviewed the available documentation, I am still unable to clarify the "attribute vs element" problem. Ladon's doc on types http://
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- ladon Edit question
- Assignee:
- jsgaarde Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alex Railean for more information if necessary.