Re: TMQL - Proposal: Removal of reifier axis
"Andrew S. Townley" <[email protected]> Sat, 30 Apr 2011 11:52:39 +0100
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Lars, oops... On 30 Apr 2011, at 11:39 AM, Andrew S. Townley wrote: > Hi Lars, > > On 30 Apr 2011, at 9:08 AM, Lars Heuer wrote: > >> Example: >> >> TMQL 2008 >> >> //tmdm:association >> reifier >> characteristics tmdm:topic-name >> >> vs. >> >> //tmdm:association >> characteristics tmdm:topic-name >> >> or (if you don't like the >> syntax): >> >> //tmdm:association/*[. isa tmdm:topic-name] > > > Minor syntax clarification here. I didn't think the splat was a valid part of the 2008 draft. To use the path expression in the latter case, I would've done this: > > //tmdm:association [ . isa tmdm:topic-name ] > > Since this parses (in my understanding) as > > Step 1: > //tmdm:association matches Rule [W] filter-postfix // anchor > > Step 2: > [ . isa tmdm:topic-name ] matches Rule [56] filter-postfix [ boolean-primitive ] > > Mostly, I just want to understand that I understand the syntax correctly, as my parser would've choked on your path expression example. ;) Too much of a hurry. My example does something different and is actually pretty useless. I actually don't see how you'd select all characteristics via a path expression, but I'm re-reading the spec... ast -- Andrew S. Townley <[email protected]> http://atownley.org