{"action":"created","issue":{"url":"https://api.github.com/repos/TEIC/Stylesheets/issues/135","repository_url":"https://api.github.com/repos/TEIC/Stylesheets","labels_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/135/comments","events_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/135/events","html_url":"https://github.com/TEIC/Stylesheets/issues/135","id":127752716,"number":135,"title":"Incorrect processing of @minOccurs and @maxOccurs on <elementRef>","user":{"login":"lb42","id":660724,"avatar_url":"https://avatars.githubusercontent.com/u/660724?v=3","gravatar_id":"","url":"https://api.github.com/users/lb42","html_url":"https://github.com/lb42","followers_url":"https://api.github.com/users/lb42/followers","following_url":"https://api.github.com/users/lb42/following{/other_user}","gists_url":"https://api.github.com/users/lb42/gists{/gist_id}","starred_url":"https://api.github.com/users/lb42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lb42/subscriptions","organizations_url":"https://api.github.com/users/lb42/orgs","repos_url":"https://api.github.com/users/lb42/repos","events_url":"https://api.github.com/users/lb42/events{/privacy}","received_events_url":"https://api.github.com/users/lb42/received_events","type":"User","site_admin":false},"labels":[{"id":49005476,"url":"https://api.github.com/repos/TEIC/Stylesheets/labels/bug","name":"bug","color":"5319e7","default":true},{"id":149097470,"url":"https://api.github.com/repos/TEIC/Stylesheets/labels/CouncilResponsibility","name":"CouncilResponsibility","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/TEIC/Stylesheets/milestones/1","html_url":"https://github.com/TEIC/Stylesheets/milestone/1","labels_url":"https://api.github.com/repos/TEIC/Stylesheets/milestones/1/labels","id":1375244,"number":1,"title":"Guidelines-3.0.0 / Stylesheets 7.41.0","description":"Use for stylesheets changes that are blocking for TEI Guidelines release 3.0.0","creator":{"login":"jamescummings","id":296651,"avatar_url":"https://avatars.githubusercontent.com/u/296651?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescummings","html_url":"https://github.com/jamescummings","followers_url":"https://api.github.com/users/jamescummings/followers","following_url":"https://api.github.com/users/jamescummings/following{/other_user}","gists_url":"https://api.github.com/users/jamescummings/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescummings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescummings/subscriptions","organizations_url":"https://api.github.com/users/jamescummings/orgs","repos_url":"https://api.github.com/users/jamescummings/repos","events_url":"https://api.github.com/users/jamescummings/events{/privacy}","received_events_url":"https://api.github.com/users/jamescummings/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2015-10-25T14:01:49Z","updated_at":"2016-12-07T15:30:41Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2016-01-20T18:27:45Z","updated_at":"2016-12-08T14:58:48Z","closed_at":null,"body":"A declaration like the following\n\n```\n <elementSpec ident=\"myFunnyP\">\n    <classes>\n   <memberOf key=\"model.divPart\"/>\n    </classes>\n<content>\n    <elementRef key=\"graphic\" minOccurs=\"2\" />\n </content>\n </elementSpec> \n```\n\ngenerates invalid XSD like this\n\n```\n<xs:element name=\"myFunnyP\">\n    <xs:annotation>\n      <xs:documentation/>\n    </xs:annotation>\n    <xs:complexType>\n      <xs:sequence>\n        <xs:element maxOccurs=\"unbounded\" ref=\"ns1:graphic\"/>\n        <xs:element maxOccurs=\"unbounded\" ref=\"ns1:graphic\"/>\n      </xs:sequence>\n    </xs:complexType>\n  </xs:element>\n```\n\nCuriously enough, specifying @maxOccurs=\"2\" is also wrongly processed, but in a different way; it generates\n\n```\n<xs:element name=\"myFunnyP\">\n    <xs:annotation>\n      <xs:documentation/>\n    </xs:annotation>\n    <xs:complexType>\n      <xs:sequence>\n        <xs:element ref=\"ns1:graphic\"/>\n      </xs:sequence>\n    </xs:complexType>\n  </xs:element>\n```\n\nAnd, before you ask, yes the same (erroneous) things happen when generating RELAXNG. \n"},"comment":{"url":"https://api.github.com/repos/TEIC/Stylesheets/issues/comments/265760308","html_url":"https://github.com/TEIC/Stylesheets/issues/135#issuecomment-265760308","issue_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/135","id":265760308,"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},"created_at":"2016-12-08T14:58:48Z","updated_at":"2016-12-08T14:58:48Z","body":"I think the stylesheets failing when handed invalid input would be a fine idea, but IIRC @lb42 was opposed, if not adamantly opposed."}}
{"actor":{"display_login":"sydb"}}