{"action":"created","issue":{"url":"https://api.github.com/repos/TEIC/TEI/issues/1406","labels_url":"https://api.github.com/repos/TEIC/TEI/issues/1406/labels{/name}","comments_url":"https://api.github.com/repos/TEIC/TEI/issues/1406/comments","events_url":"https://api.github.com/repos/TEIC/TEI/issues/1406/events","html_url":"https://github.com/TEIC/TEI/issues/1406","id":117939137,"number":1406,"title":"p5odds.odd is too restrictive","user":{"login":"martindholmes","id":2412617,"avatar_url":"https://avatars.githubusercontent.com/u/2412617?v=3","gravatar_id":"","url":"https://api.github.com/users/martindholmes","html_url":"https://github.com/martindholmes","followers_url":"https://api.github.com/users/martindholmes/followers","following_url":"https://api.github.com/users/martindholmes/following{/other_user}","gists_url":"https://api.github.com/users/martindholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/martindholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindholmes/subscriptions","organizations_url":"https://api.github.com/users/martindholmes/orgs","repos_url":"https://api.github.com/users/martindholmes/repos","events_url":"https://api.github.com/users/martindholmes/events{/privacy}","received_events_url":"https://api.github.com/users/martindholmes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-20T00:21:36Z","updated_at":"2015-11-23T19:16:35Z","closed_at":null,"body":"Ron is adding new features to the jTEI ODD file to provide support through the schema for Oxygen's new QuickFix feature. These are elements in the sqf namespace which provide hints for Oxygen users to help them resolve the problem flagged by the constraint:\r\n\r\n~~~~~\r\n<constraint>\r\n                 <sch:rule context=\"tei:titleStmt\">\r\n                 <sch:assert test=\"tei:title[@type = 'main']\" sqf:fix=\"type.add\">\r\n                     A title of type \"main\" is required in <sch:name/>.\r\n                   </sch:assert>\r\n                 <sqf:fix id=\"type.add\">\r\n                   <sqf:description>\r\n                    <sqf:title>Add a @type='main' attribute to the first title.</sqf:title>\r\n                  </sqf:description>\r\n                   <sqf:add match=\"tei:title[not(@type='main')][1]\" node-type=\"attribute\" target=\"type\">main</sqf:add>\r\n                  </sqf:fix>                  \r\n                 </sch:rule>\r\n               </constraint>\r\n~~~~~\r\n\r\nThis would be valid according to the standard P5 schema, but it isn't valid against p5odds.odd, the more restrictive version we use for validating ODD files in the P5 tree. We would like to see this changed. The two options would be:\r\n\r\n* Remove the extra strictness on the content model of `<constraint>` so that anything allowed by the standard tei_all is allowed in p5odds; or\r\n* make a special case of this sqf content, and allow it explicitly in p5odds.odd.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/TEIC/TEI/issues/comments/159033763","html_url":"https://github.com/TEIC/TEI/issues/1406#issuecomment-159033763","issue_url":"https://api.github.com/repos/TEIC/TEI/issues/1406","id":159033763,"user":{"login":"martindholmes","id":2412617,"avatar_url":"https://avatars.githubusercontent.com/u/2412617?v=3","gravatar_id":"","url":"https://api.github.com/users/martindholmes","html_url":"https://github.com/martindholmes","followers_url":"https://api.github.com/users/martindholmes/followers","following_url":"https://api.github.com/users/martindholmes/following{/other_user}","gists_url":"https://api.github.com/users/martindholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/martindholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindholmes/subscriptions","organizations_url":"https://api.github.com/users/martindholmes/orgs","repos_url":"https://api.github.com/users/martindholmes/repos","events_url":"https://api.github.com/users/martindholmes/events{/privacy}","received_events_url":"https://api.github.com/users/martindholmes/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T19:16:35Z","updated_at":"2015-11-23T19:16:35Z","body":"You mean the redefinition of the content model of `<constraint>`, surely?"}}