Re: TMQL - Proposal: Removal of reifier axis
Lars Heuer <[email protected]> Sat, 30 Apr 2011 12:46:57 +0200
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Organization | Semagia |
| Message-ID | <[email protected]> |
Hi Andrew, [...] > Minor syntax clarification here. I didn't think the splat was a > valid part of the 2008 draft. Yes, the 3rd expression wasn't meant to be valid TMQL acc. to the drafr 2008, but an imaginary XSLT-like syntax to remove some >> clutter. > To use the path expression in the > latter case, I would've done this: > //tmdm:association [ . isa tmdm:topic-name ] I think this expression is different from mine, since you're saying here: Give me all associations which are also an instance of tmdm:topic-name. You have to insert an additional axis to perform the [. isa tmdm:topic-name] test and to match my purpose. Your path expression is valid, but it does not iterate through the children of the association and test if the child is an instance of tmdm:topic-name. Best regards, Lars -- Semagia <http://www.semagia.com/> <https://twitter.com/larsheuer/> Twitter <http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list <http://tinytim.sourceforge.net/> Open Source Topic Maps engine <http://mappa.semagia.com/> Mappa - Python Topic Maps engine