Skip to main content

BIN mamrl Documentation

  • Author:

  • Version: 18

  • Description: A list of uniquely keyed items and a list of references to the keys - the [refer] attribute is used to specify the [key] constraint to which refers the [keyref] - [keyref] Instance constraint example from Eleusoft Application Documentation

  • Created: 2014-09-21

  • Modified: 2014-09-21

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='A list of uniquely keyed items and a list of references to the keys - the [refer] attribute is used to specify the [key] constraint to which refers the [keyref] - [keyref] Instance constraint example from Eleusoft Application Documentation'>
        <field name='Item' minOccurs='2' maxOccurs='5' extra:lc.simple='true' extra:lc.buttonsright='true' type='Item'/>
        <field name='Reference' minOccurs='1' maxOccurs='10' type='xs:string' extra:lc.simple='true' extra:lc.buttonsright='true' />
        <constraint name='EachItemMustHaveUniqueKey' 
          category='key' selector='./Item'>
            <expression path='Key'/>
        </constraint>
        <constraint name='EachReferenceMustReferenceOneKey' 
          category='keyref' selector='./Reference' refer='EachItemMustHaveUniqueKey' >
            <expression path='.'/>
        </constraint>
    </complexType>
    <complexType name='Item' >
        <field name='Key' type='xs:string' extra:ctrl.emptyisnull='true' minOccurs='0' extra:form.maybenull='true'/>
    </complexType>