Re: TMQL - Proposal: Removal of reifier axis
"Andrew S. Townley" <[email protected]> Sat, 30 Apr 2011 11:39:36 +0100
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
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. ;) Cheers, ast -- Andrew S. Townley <[email protected]> http://atownley.org