{"action":"created","issue":{"url":"https://api.github.com/repos/TEIC/Stylesheets/issues/141","repository_url":"https://api.github.com/repos/TEIC/Stylesheets","labels_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/141/comments","events_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/141/events","html_url":"https://github.com/TEIC/Stylesheets/issues/141","id":132164733,"number":141,"title":"dataRef as child of content nearly works","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":[{"url":"https://api.github.com/repos/TEIC/Stylesheets/labels/bug","name":"bug","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T14:57:50Z","updated_at":"2016-02-18T12:39:16Z","closed_at":null,"body":"It should be possible to specify just a dataRef as content for an element. However this only seems to work if the dataRef uses @name to point to an XSD definition; a @key value pointing to a TEI dataspec is ignored and the element winds up empty. \r\n~~~~\r\n<content>\r\n<dataRef name=\"anyURI\"/>\r\n</content>\r\n<!-- ought to have the same effect as -->\r\n<content>\r\n<dataRef key=\"teidata.pointer\"/>\r\n</content>\r\n<!-- but while the former correctly produces a content model of xsd:anyuri\r\n     the latter produces a content model which is empty -->\r\n~~~~\r\n\r\n(evidenced in CMIF odd; thanks Peter Stadler)"},"comment":{"url":"https://api.github.com/repos/TEIC/Stylesheets/issues/comments/185703299","html_url":"https://github.com/TEIC/Stylesheets/issues/141#issuecomment-185703299","issue_url":"https://api.github.com/repos/TEIC/Stylesheets/issues/141","id":185703299,"user":{"login":"hcayless","id":23493,"avatar_url":"https://avatars.githubusercontent.com/u/23493?v=3","gravatar_id":"","url":"https://api.github.com/users/hcayless","html_url":"https://github.com/hcayless","followers_url":"https://api.github.com/users/hcayless/followers","following_url":"https://api.github.com/users/hcayless/following{/other_user}","gists_url":"https://api.github.com/users/hcayless/gists{/gist_id}","starred_url":"https://api.github.com/users/hcayless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hcayless/subscriptions","organizations_url":"https://api.github.com/users/hcayless/orgs","repos_url":"https://api.github.com/users/hcayless/repos","events_url":"https://api.github.com/users/hcayless/events{/privacy}","received_events_url":"https://api.github.com/users/hcayless/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T12:39:16Z","updated_at":"2016-02-18T12:39:16Z","body":"I can't reproduce if I remember to set the $#!*%! localsource variable to a build of TEI with Pure ODD in it. I get:\r\n~~~~~\r\n<define name=\"dataElt\">\r\n  <element name=\"dataElt\">\r\n    <a:documentation xmlns:a=\"http://relaxng.org/ns/compatibility/annotations/1.0\">Element with a datatype as content</a:documentation>\r\n    <data type=\"anyURI\"/>\r\n  </element>\r\n</define>\r\n~~~~~\r\nwhich seems right. This keeps happening to me. I think we should have a better warning about which source is being used when the script is run. Right now it gives you a message only if you set localsource, but really, it should warn you it's going and downloading a copy from the last release if you *didn't* set it."}}