{"action":"created","issue":{"url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/12","labels_url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/12/comments","events_url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/12/events","html_url":"https://github.com/physikerwelt/MathMLQueryGenerator/issues/12","id":87754895,"number":12,"title":"Make option to force order to matter for qvars","user":{"login":"jimmyli97","id":1155874,"avatar_url":"https://avatars.githubusercontent.com/u/1155874?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmyli97","html_url":"https://github.com/jimmyli97","followers_url":"https://api.github.com/users/jimmyli97/followers","following_url":"https://api.github.com/users/jimmyli97/following{/other_user}","gists_url":"https://api.github.com/users/jimmyli97/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyli97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyli97/subscriptions","organizations_url":"https://api.github.com/users/jimmyli97/orgs","repos_url":"https://api.github.com/users/jimmyli97/repos","events_url":"https://api.github.com/users/jimmyli97/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyli97/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-12T15:02:59Z","updated_at":"2015-06-12T17:34:00Z","closed_at":"2015-06-12T17:29:16Z","body":"Currently the only restriction on qvars comes from the length restriction.\r\n\r\nFor example:\r\n```\r\n<expr>\r\n <apply>\r\n  <divide/>\r\n  <qvar>x</qvar>\r\n  <cn>2</cn>\r\n </apply>\r\n</expr>\r\n```\r\nwill return the following query (if length restriction is enabled):\r\n```\r\nfor $x in $m//*:apply\r\n [*[1]/name() = 'divide' and *[3]/name() = 'cn' and *[3][./text() = '2']]\r\nwhere\r\n fn:count($x/*[3]/*) = 0\r\n and fn:count($x/*) = 3\r\n```\r\nHowever this does not take into account the fact that \r\n```\r\n<divide/>\r\n<qvar>x</qvar>\r\n<cn>2</cn>\r\n```\r\nis different from\r\n```\r\n<divide/>\r\n<cn>2</cn>\r\n<qvar>x</qvar>\r\n```\r\nIt seems like this should be implemented as part of the qvar concept"},"comment":{"url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/comments/111569194","html_url":"https://github.com/physikerwelt/MathMLQueryGenerator/issues/12#issuecomment-111569194","issue_url":"https://api.github.com/repos/physikerwelt/MathMLQueryGenerator/issues/12","id":111569194,"user":{"login":"jimmyli97","id":1155874,"avatar_url":"https://avatars.githubusercontent.com/u/1155874?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmyli97","html_url":"https://github.com/jimmyli97","followers_url":"https://api.github.com/users/jimmyli97/followers","following_url":"https://api.github.com/users/jimmyli97/following{/other_user}","gists_url":"https://api.github.com/users/jimmyli97/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyli97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyli97/subscriptions","organizations_url":"https://api.github.com/users/jimmyli97/orgs","repos_url":"https://api.github.com/users/jimmyli97/repos","events_url":"https://api.github.com/users/jimmyli97/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyli97/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T17:34:00Z","updated_at":"2015-06-12T17:34:00Z","body":"Ok should I make a test case for this?"}}