{"action":"opened","issue":{"url":"https://api.github.com/repos/TEIC/TEI/issues/1440","repository_url":"https://api.github.com/repos/TEIC/TEI","labels_url":"https://api.github.com/repos/TEIC/TEI/issues/1440/labels{/name}","comments_url":"https://api.github.com/repos/TEIC/TEI/issues/1440/comments","events_url":"https://api.github.com/repos/TEIC/TEI/issues/1440/events","html_url":"https://github.com/TEIC/TEI/issues/1440","id":140976463,"number":1440,"title":"screwy Schematron?","user":{"login":"sydb","id":124655,"avatar_url":"https://avatars.githubusercontent.com/u/124655?v=3","gravatar_id":"","url":"https://api.github.com/users/sydb","html_url":"https://github.com/sydb","followers_url":"https://api.github.com/users/sydb/followers","following_url":"https://api.github.com/users/sydb/following{/other_user}","gists_url":"https://api.github.com/users/sydb/gists{/gist_id}","starred_url":"https://api.github.com/users/sydb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sydb/subscriptions","organizations_url":"https://api.github.com/users/sydb/orgs","repos_url":"https://api.github.com/users/sydb/repos","events_url":"https://api.github.com/users/sydb/events{/privacy}","received_events_url":"https://api.github.com/users/sydb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sydb","id":124655,"avatar_url":"https://avatars.githubusercontent.com/u/124655?v=3","gravatar_id":"","url":"https://api.github.com/users/sydb","html_url":"https://github.com/sydb","followers_url":"https://api.github.com/users/sydb/followers","following_url":"https://api.github.com/users/sydb/following{/other_user}","gists_url":"https://api.github.com/users/sydb/gists{/gist_id}","starred_url":"https://api.github.com/users/sydb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sydb/subscriptions","organizations_url":"https://api.github.com/users/sydb/orgs","repos_url":"https://api.github.com/users/sydb/repos","events_url":"https://api.github.com/users/sydb/events{/privacy}","received_events_url":"https://api.github.com/users/sydb/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-03-15T13:45:54Z","updated_at":"2016-03-15T13:45:54Z","closed_at":null,"body":"The example of ISO Schematron with `@ident` “subclauses” (which is in chapter TD) seems unduly complex. The main test is\r\n~~~~~xml\r\n<assert test=\"not(tei:div) or count(tei:div)&gt;1\">\r\n~~~~~\r\nWhich says, essentially, “it’s OK if there are either 0 `<div>`s OR if there are greater than 1 `<div>`” — i.e., the only condition which is **not** OK is 1 `<div>`. So why not just\r\n~~~~~xml\r\n<report test=\"count( tei:div ) eq 1\">\r\n~~~~~\r\n?\r\n"}}