{"action":"created","issue":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2240","repository_url":"https://api.github.com/repos/dita-ot/dita-ot","labels_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2240/labels{/name}","comments_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2240/comments","events_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2240/events","html_url":"https://github.com/dita-ot/dita-ot/issues/2240","id":135990385,"number":2240,"title":"Keyscope + branch filtering potential bug","user":{"login":"raducoravu","id":1005979,"avatar_url":"https://avatars.githubusercontent.com/u/1005979?v=3","gravatar_id":"","url":"https://api.github.com/users/raducoravu","html_url":"https://github.com/raducoravu","followers_url":"https://api.github.com/users/raducoravu/followers","following_url":"https://api.github.com/users/raducoravu/following{/other_user}","gists_url":"https://api.github.com/users/raducoravu/gists{/gist_id}","starred_url":"https://api.github.com/users/raducoravu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raducoravu/subscriptions","organizations_url":"https://api.github.com/users/raducoravu/orgs","repos_url":"https://api.github.com/users/raducoravu/repos","events_url":"https://api.github.com/users/raducoravu/events{/privacy}","received_events_url":"https://api.github.com/users/raducoravu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/needs-reproduction","name":"needs-reproduction","color":"009800"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/P2","name":"P2","color":"e102d8"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/preprocess/keyref","name":"preprocess/keyref","color":"84b6e8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-24T08:18:51Z","updated_at":"2016-02-24T08:49:54Z","closed_at":null,"body":"Related to this discussion I had no the DITA specs list:\r\n\r\nhttps://lists.oasis-open.org/archives/dita-comment/201602/msg00001.html\r\n\r\nSo in one place of the DITA Map I have:\r\n\r\n            <topichead navtitle=\"Test\" collection-type=\"choice\">\r\n                <ditavalref href=\"topics/getting_started/install_windows.ditaval\">\r\n                    <ditavalmeta>\r\n                        <dvrResourcePrefix>windows-</dvrResourcePrefix>\r\n                        <dvrKeyscopePrefix>windows_scope-</dvrKeyscopePrefix>\r\n                    </ditavalmeta>\r\n                </ditavalref>\r\n                \r\n                <topicref href=\"topics/install.dita\"\r\n                    keys=\"topicref_install\"\r\n                    keyscope=\"scope_install\"/>\r\n         </topichead>\r\n\r\nand in some other place I have a keyref like:\r\n\r\n        <topicref\r\n          keyref=\"windows_scope-scope_install.topicref_install\"/>\r\n\r\nFrom what I understand the keyref is invalid because the \"windows_scope-\" prefix must only be applied on the @keyscope attribute specified on the topichead in which the ditavalref is placed. \r\nBut the DITA OT 2.x processes the keyref as valid and finds the target topic.\r\n\r\nAs the @keyscope is missing on the topichead, according to the specs the @keyscope on the topichead will become \"windows-\" so the proper way to have the keyref would be:\r\n\r\n\r\n        <topicref\r\n          keyref=\"windows_scope-.scope_install_select_parallel.topicref_install_select_parallel\"/>\r\n\r\nwhich currently does not work using DITA OT 2.x.\r\n\r\nWhat's your opinion on this?"},"comment":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/comments/188143308","html_url":"https://github.com/dita-ot/dita-ot/issues/2240#issuecomment-188143308","issue_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2240","id":188143308,"user":{"login":"raducoravu","id":1005979,"avatar_url":"https://avatars.githubusercontent.com/u/1005979?v=3","gravatar_id":"","url":"https://api.github.com/users/raducoravu","html_url":"https://github.com/raducoravu","followers_url":"https://api.github.com/users/raducoravu/followers","following_url":"https://api.github.com/users/raducoravu/following{/other_user}","gists_url":"https://api.github.com/users/raducoravu/gists{/gist_id}","starred_url":"https://api.github.com/users/raducoravu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raducoravu/subscriptions","organizations_url":"https://api.github.com/users/raducoravu/orgs","repos_url":"https://api.github.com/users/raducoravu/repos","events_url":"https://api.github.com/users/raducoravu/events{/privacy}","received_events_url":"https://api.github.com/users/raducoravu/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T08:49:54Z","updated_at":"2016-02-24T08:49:54Z","body":"@jelovirt are you right now using the dvrKeyscopePrefix on all key scopes defined inside the topicref which contains the ditavalref?"}}