Dev:Multiplicity: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Expansion) |
(Expansion) |
||
Line 1: | Line 1: | ||
{{head|Multiplicity}} | {{head|Multiplicity}} | ||
The section ''Multiplicity'' in element documentation pages reports the occurence indicators of the respective element, by name the values of ''minOccurs'' and ''maxOccurs''. For example, in <tt><[[IS:ocpRef_path | The section ''Multiplicity'' in element documentation pages reports the occurence indicators of the respective element, by name the values of ''minOccurs'' and ''maxOccurs''. For example, in <tt><[[IS:ocpRef_path|ocpRef]]></tt> the multiplicity is depicted with [2..2], which means, that ''minOccurs''=''maxOccurs''=2 resp., every {{IS:Tag|path}} requires exactly two instances of {{IS:Tag|ocpRef|path}}. | ||
The default values for ''minOccurs'' and ''maxOccurs'' are 1, which means that on default an element has to be used exactly once, like in <tt>< | The default values for ''minOccurs'' and ''maxOccurs'' are 1, which means that on default an element has to be used exactly once, like in <tt><[[CO:isoCountryCode_{{#if:|%23{{{attr}}}}}|isoCountryCode]]></tt>. | ||
As an element cannot be employed a negative number of times or halve a time, ''minOccurs'' and ''maxOccurs'' have to be non-negative integers. ''maxOccurs'' must be ≥''minOccurs''. ''maxOccurs'' may be unbounded (∞), as in <tt><[[IS:track_ | As an element cannot be employed a negative number of times or halve a time, ''minOccurs'' and ''maxOccurs'' have to be non-negative integers. ''maxOccurs'' must be ≥''minOccurs''. ''maxOccurs'' may be unbounded (∞), as in <tt><[[IS:track_|track]]></tt>. | ||
==For Further Reading== | ==For Further Reading== | ||
*{{external|https://www.w3schools.com/xml/schema_complex_indicators.asp}} | *{{external|https://www.w3schools.com/xml/schema_complex_indicators.asp}} |
Revision as of 13:27, 10 December 2018
Multiplicity
The section Multiplicity in element documentation pages reports the occurence indicators of the respective element, by name the values of minOccurs and maxOccurs. For example, in <ocpRef> the multiplicity is depicted with [2..2], which means, that minOccurs=maxOccurs=2 resp., every <path> requires exactly two instances of <ocpRef>.
The default values for minOccurs and maxOccurs are 1, which means that on default an element has to be used exactly once, like in <isoCountryCode>.
As an element cannot be employed a negative number of times or halve a time, minOccurs and maxOccurs have to be non-negative integers. maxOccurs must be ≥minOccurs. maxOccurs may be unbounded (∞), as in <track>.
For Further Reading
- https://www.w3schools.com/xml/schema_complex_indicators.asp (external link)