{"action":"created","issue":{"url":"https://api.github.com/repos/xproc/3.0-specification/issues/375","repository_url":"https://api.github.com/repos/xproc/3.0-specification","labels_url":"https://api.github.com/repos/xproc/3.0-specification/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/xproc/3.0-specification/issues/375/comments","events_url":"https://api.github.com/repos/xproc/3.0-specification/issues/375/events","html_url":"https://github.com/xproc/3.0-specification/issues/375","id":317298396,"number":375,"title":"Content-type for port \"insertion\" on p:insert","user":{"login":"xml-project","id":8513917,"avatar_url":"https://avatars0.githubusercontent.com/u/8513917?v=4","gravatar_id":"","url":"https://api.github.com/users/xml-project","html_url":"https://github.com/xml-project","followers_url":"https://api.github.com/users/xml-project/followers","following_url":"https://api.github.com/users/xml-project/following{/other_user}","gists_url":"https://api.github.com/users/xml-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xml-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xml-project/subscriptions","organizations_url":"https://api.github.com/users/xml-project/orgs","repos_url":"https://api.github.com/users/xml-project/repos","events_url":"https://api.github.com/users/xml-project/events{/privacy}","received_events_url":"https://api.github.com/users/xml-project/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"xml-project","id":8513917,"avatar_url":"https://avatars0.githubusercontent.com/u/8513917?v=4","gravatar_id":"","url":"https://api.github.com/users/xml-project","html_url":"https://github.com/xml-project","followers_url":"https://api.github.com/users/xml-project/followers","following_url":"https://api.github.com/users/xml-project/following{/other_user}","gists_url":"https://api.github.com/users/xml-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xml-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xml-project/subscriptions","organizations_url":"https://api.github.com/users/xml-project/orgs","repos_url":"https://api.github.com/users/xml-project/repos","events_url":"https://api.github.com/users/xml-project/events{/privacy}","received_events_url":"https://api.github.com/users/xml-project/received_events","type":"User","site_admin":false},"assignees":[{"login":"xml-project","id":8513917,"avatar_url":"https://avatars0.githubusercontent.com/u/8513917?v=4","gravatar_id":"","url":"https://api.github.com/users/xml-project","html_url":"https://github.com/xml-project","followers_url":"https://api.github.com/users/xml-project/followers","following_url":"https://api.github.com/users/xml-project/following{/other_user}","gists_url":"https://api.github.com/users/xml-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xml-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xml-project/subscriptions","organizations_url":"https://api.github.com/users/xml-project/orgs","repos_url":"https://api.github.com/users/xml-project/repos","events_url":"https://api.github.com/users/xml-project/events{/privacy}","received_events_url":"https://api.github.com/users/xml-project/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-24T16:15:11Z","updated_at":"2018-04-25T14:25:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Input port \"insertion\" on p:insert has content-type=\"application/xml\". Together with\r\n\r\n> If such a document consists exclusively of text nodes, then it has a content type of text/plain, otherwise it has a content type of application/xml.\r\n\r\nthis leads to unexpected behaviour, because:\r\n````\r\n<p:with-input port=\"insertion\" select=\"//comment()\" />\r\n````\r\nis valid, but\r\n````\r\n<p:with-input port=\"insertion\" select=\"//text()\" />\r\n````\r\nis not, because the later is a text document.\r\n\r\nI think the easiest way to fix this is to chance content-type of p:insertion to \"application/xml text/plain\".\r\nWhat did I miss?"},"comment":{"url":"https://api.github.com/repos/xproc/3.0-specification/issues/comments/384305908","html_url":"https://github.com/xproc/3.0-specification/issues/375#issuecomment-384305908","issue_url":"https://api.github.com/repos/xproc/3.0-specification/issues/375","id":384305908,"user":{"login":"eriksiegel","id":5820773,"avatar_url":"https://avatars1.githubusercontent.com/u/5820773?v=4","gravatar_id":"","url":"https://api.github.com/users/eriksiegel","html_url":"https://github.com/eriksiegel","followers_url":"https://api.github.com/users/eriksiegel/followers","following_url":"https://api.github.com/users/eriksiegel/following{/other_user}","gists_url":"https://api.github.com/users/eriksiegel/gists{/gist_id}","starred_url":"https://api.github.com/users/eriksiegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriksiegel/subscriptions","organizations_url":"https://api.github.com/users/eriksiegel/orgs","repos_url":"https://api.github.com/users/eriksiegel/repos","events_url":"https://api.github.com/users/eriksiegel/events{/privacy}","received_events_url":"https://api.github.com/users/eriksiegel/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T14:25:20Z","updated_at":"2018-04-25T14:25:20Z","author_association":"CONTRIBUTOR","body":"Why would //comment() be valid on a text/plain document? Select expressions are about XML, so using one on anything else than an XML document is an error I would expect?"}}
{"actor":{"display_login":"eriksiegel"}}