Re: TMQL names vs. occurrences
Lars Heuer <[email protected]> Mon, 11 Dec 2006 17:17:28 +0100
| Newsgroups | gmane.text.xml.xtm.tmql |
|---|---|
| Organization | Semagia |
| Message-ID | <[email protected]> |
Hi Robert,
[...]
>> select $p/surname[* tmdm:name] where $p isa person
> Exactly.
That's cool. :)
Last question: My assumption that the queries (a) and (b) are
equivalent, is correct?
a) select $p/surname[* tmdm:name] where $p isa person
b) select $p/tmdm:name[* surname] where $p isa person
[...]
> If someone is concerned about any ambiguity in his data (read: "I want
> _names_ only"), then additional filtering will have to be introduced:
> select $p / homepage [ * name ]
> But I do not expect that this is the main stream case. Normally most
> notations will encourage that occurrences and names have distinct type
> structures.
Right.
Best regards,
Lars