Re: TMQL: Direct (super|sub)types?
Robert Cerny <[email protected]>
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
Am 03.03.2011 um 12:01 schrieb Andrew S. Townley: > This approach is taken by lots of systems whether it's "/**/*" to match an arbitrary depth of filesystem paths to XPath's "//[expr]" to find nodes anywhere. Why can't we leverage existing conventions here and say that the default behavior of the axes is to pull a single level, and then if a modifier is present, e.g. s1 / *types or s1 /*supertypes, then we pull the whole thing. I could live with your last proposal as well. It's a tough call to decide which i like better. Probably a draw. I think most importantly the default should be the same over those four. > I think the semantics of the notation would remain clear, all the use cases would still be supported and it would make more sense to more people. I find this difficult to judge. There is many schools of thoughts in information technology and they all leave quite strong marks in the minds of their followers. So sometimes what is obvious to one is totally obscure to another. Robert