{"action":"created","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/76","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/76/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/76/events","html_url":"https://github.com/sysrepo/sysrepo/issues/76","id":138182987,"number":76,"title":"XPath addressing","user":{"login":"michalvasko","id":12510224,"avatar_url":"https://avatars.githubusercontent.com/u/12510224?v=3","gravatar_id":"","url":"https://api.github.com/users/michalvasko","html_url":"https://github.com/michalvasko","followers_url":"https://api.github.com/users/michalvasko/followers","following_url":"https://api.github.com/users/michalvasko/following{/other_user}","gists_url":"https://api.github.com/users/michalvasko/gists{/gist_id}","starred_url":"https://api.github.com/users/michalvasko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalvasko/subscriptions","organizations_url":"https://api.github.com/users/michalvasko/orgs","repos_url":"https://api.github.com/users/michalvasko/repos","events_url":"https://api.github.com/users/michalvasko/events{/privacy}","received_events_url":"https://api.github.com/users/michalvasko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T13:54:20Z","updated_at":"2016-03-03T14:51:49Z","closed_at":null,"body":"Hi,\r\nI am referring to [this](http://www.sysrepo.org/static/doc/html/xp_page.html) document. In it you have defined what I would think is a subset of XPath, which was simplified for your needs. However, the XPath expression to get all top-level nodes from a model (`/model:`) is actually not a valid XPath. Valid XPath with exactly the same meaning would be `/model:*`. My question is, was this deviation from XPath intentional and if so, what was the reason for it?\r\n\r\nRegards,\r\nMichal"},"comment":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/comments/191797720","html_url":"https://github.com/sysrepo/sysrepo/issues/76#issuecomment-191797720","issue_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/76","id":191797720,"user":{"login":"lukasmacko","id":16013493,"avatar_url":"https://avatars.githubusercontent.com/u/16013493?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasmacko","html_url":"https://github.com/lukasmacko","followers_url":"https://api.github.com/users/lukasmacko/followers","following_url":"https://api.github.com/users/lukasmacko/following{/other_user}","gists_url":"https://api.github.com/users/lukasmacko/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasmacko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasmacko/subscriptions","organizations_url":"https://api.github.com/users/lukasmacko/orgs","repos_url":"https://api.github.com/users/lukasmacko/repos","events_url":"https://api.github.com/users/lukasmacko/events{/privacy}","received_events_url":"https://api.github.com/users/lukasmacko/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T14:51:49Z","updated_at":"2016-03-03T14:51:49Z","body":"Hi Michal,\r\n\r\nyes you're right, the simplified \"subset\" of xpath is used. The idea was to enable easy addressing for the most common use cases. Basicly, we use trimmed xpath. If we added ```*``` in addressing of the whole model, it should be added in container addressing ```/model:container/*```  and list addressing ```/model:list[key1='a'][key2='b']/*``` as well to adress in a consistent way.\r\n\r\nYou can subscribe to the mailing list [mailing list](http://lists.sysrepo.org/listinfo/sysrepo-private) where we discuss design topic like this. I'll start the discussion about the issue you have described.\r\n\r\nRegards,\r\nLukas\r\n"}}