Sam Heard schreef: > Heath has said it how it is: > > Archetype paths - that is the path to each node in an archetype - is > unique. This is what the ADL statement you have seen refers to. > > In data, in contrast, an individual archetype node which has > occurrences set as (1...2) in the archetype could exist twice in the > data. That is what occurrences of 2 means. How then to differentiate > between the two instances of this node. The answer is in the name of > that thing - which can be coded or free text. What this means is that > you can ask for something in the data as a specific instance (unique) > which may have a name in the path as well as the archetype_node_id's - > for example: > > /items[at0002 and name/value="xxx"] > > or as a path as in the archetype > > /items[at0002] > > which will return all instances of the node. > > Both paths transform to XPath in a very straightforward manner and > give the same results. > > Hope this is helpful. Thanks Sam, for explaining, so, if I may resume:
If you have a node in your ADL /items[0002] and you have a node /items[0003] and /items[0003] contains a Internalref to items/[0002], what will be the ADL-path? My guess is, in cADL it will be /items[0003] (because, that is the location of the internalref) In data it will be /items[0002] with a "name"-qualifier. Is that correct? Thanks, Bert

