Hi all,
I had following interesting discussion.
Suppose we have a cluster containing name of a person.
There is a field called firstname, and a field called lastname.
The problem is concerning the ADL-path, what should be used.
This is a part of the archetype:
CLUSTER[at0007] occurrences matches {0..1} matches { -- voornamen
items cardinality matches {0..*; ordered} matches {
ELEMENT[at0008] occurrences matches {0..*} matches
{ -- firstname
value matches {
DV_TEXT matches {*}
}
}
ELEMENT[at0009] occurrences matches {0..1} matches
{ -- lastname
value matches {
DV_TEXT matches {*}
}
}
}
This is a hypothecical example, only to explain:
Because at0008 has upper-occurrences of more then 1 ( a person can have
more then one firstnames)
And at0009 has upper-occurrences of 1 (people only have one last-name
(in this hypothetical country))
If we want to express data in a path/value combination, what would be
the best solution?
/items[at0008][1]/value/value = Jan
/items[at0008][2]/value/value = Peter
/items[at0009]/value/value = Balkenende
/items[at0008][1]/value/value = Jan
/items[at0008][2]/value/value = Peter
/items[at0009][1]/value/value = Balkenende
/items[at0008][1]/value/value = Jan
/items[at0008][2]/value/value = Peter
/items[at0009][3]/value/value = Balkenende
Or would another solution be better?
Thanks in advance for suggestions.
Kind regards
Bert Verhees