{"action":"closed","issue":{"url":"https://api.github.com/repos/BaseXdb/basex/issues/1161","labels_url":"https://api.github.com/repos/BaseXdb/basex/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/BaseXdb/basex/issues/1161/comments","events_url":"https://api.github.com/repos/BaseXdb/basex/issues/1161/events","html_url":"https://github.com/BaseXdb/basex/issues/1161","id":88393228,"number":1161,"title":"XQuery: index access, positional predicates","user":{"login":"ChristianGruen","id":196589,"avatar_url":"https://avatars.githubusercontent.com/u/196589?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianGruen","html_url":"https://github.com/ChristianGruen","followers_url":"https://api.github.com/users/ChristianGruen/followers","following_url":"https://api.github.com/users/ChristianGruen/following{/other_user}","gists_url":"https://api.github.com/users/ChristianGruen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianGruen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianGruen/subscriptions","organizations_url":"https://api.github.com/users/ChristianGruen/orgs","repos_url":"https://api.github.com/users/ChristianGruen/repos","events_url":"https://api.github.com/users/ChristianGruen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianGruen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BaseXdb/basex/labels/optimization","name":"optimization","color":"f06040"},{"url":"https://api.github.com/repos/BaseXdb/basex/labels/xquery","name":"xquery","color":"eeeeee"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T11:15:13Z","updated_at":"2015-06-15T14:04:48Z","closed_at":"2015-06-15T14:04:48Z","body":"The first expression is rewritten for index access, the second isn’t:\r\n\r\n```xquery\r\n//*[text()   ][text() = \"bla\"],\r\n//*[text()[1]][text() = \"bla\"]\r\n```"}}