{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2424","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2424/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2424/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2424/events","html_url":"https://github.com/jgm/pandoc/issues/2424","id":108653471,"number":2424,"title":"fb2 produced by pandoc doesn't validate","user":{"login":"vbwagner","id":2743340,"avatar_url":"https://avatars.githubusercontent.com/u/2743340?v=3","gravatar_id":"","url":"https://api.github.com/users/vbwagner","html_url":"https://github.com/vbwagner","followers_url":"https://api.github.com/users/vbwagner/followers","following_url":"https://api.github.com/users/vbwagner/following{/other_user}","gists_url":"https://api.github.com/users/vbwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/vbwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbwagner/subscriptions","organizations_url":"https://api.github.com/users/vbwagner/orgs","repos_url":"https://api.github.com/users/vbwagner/repos","events_url":"https://api.github.com/users/vbwagner/events{/privacy}","received_events_url":"https://api.github.com/users/vbwagner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T13:01:47Z","updated_at":"2015-10-04T09:07:14Z","closed_at":null,"body":"PAndoc 1.12.4.2 produces incorrect FB2 metainfomramation.\r\n\r\nConsider following example\r\n \r\n      ---\r\n      author: Victor Wagner\r\n      title: The example fb2\r\n      language: en\r\n      abstract: The example FB2\r\n      ---\r\n      Chapter One\r\n      ==========\r\n       This is a text of  the chapter 0ne\r\n\r\nI expect that command\r\n\r\n      pandoc -o example.fb2 example.mkd \r\n\r\nWould produce file which would pass validation using\r\n\r\n      xmllint --schema FictionBook2.1xml example.fb2\r\n\r\nUnfortunately, I recieve lots of errors.\r\n\r\nexample.fb2:2: element book-title: Schemas validity error : Element '{http://www.gribuser.ru/xml/fictionbook/2.0}book-title': This element is not expected. Expected is ( {http://www.gribuser.ru/xml/fictionbook/2.0}genre ).\r\nexample.fb2:2: element program-used: Schemas validity error : Element '{http://www.gribuser.ru/xml/fictionbook/2.0}program-used': This element is not expected. Expected is ( {http://www.gribuser.ru/xml/fictionbook/2.0}author ).\r\nexample.fb2:2: element annotation: Schemas validity error : Element '{http://www.gribuser.ru/xml/fictionbook/2.0}annotation': This element is not expected. Expected is one of ( {http://www.gribuser.ru/xml/fictionbook/2.0}epigraph, {http://www.gribuser.ru/xml/fictionbook/2.0}section ).\r\n\r\nI.e. \r\n\r\n1. No genre specified. FB2 requires at least one genre.\r\n2. author should go before book-title, not vice versa\r\n3. Document creation date is required in the document-info\r\n4. id is required\r\n5. annotation tag should go into the title-info and contain an abstract, not into first page in the body.\r\n\r\n\r\n\r\n\r\n    "},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/145329246","html_url":"https://github.com/jgm/pandoc/issues/2424#issuecomment-145329246","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2424","id":145329246,"user":{"login":"astanin","id":71802,"avatar_url":"https://avatars.githubusercontent.com/u/71802?v=3","gravatar_id":"","url":"https://api.github.com/users/astanin","html_url":"https://github.com/astanin","followers_url":"https://api.github.com/users/astanin/followers","following_url":"https://api.github.com/users/astanin/following{/other_user}","gists_url":"https://api.github.com/users/astanin/gists{/gist_id}","starred_url":"https://api.github.com/users/astanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astanin/subscriptions","organizations_url":"https://api.github.com/users/astanin/orgs","repos_url":"https://api.github.com/users/astanin/repos","events_url":"https://api.github.com/users/astanin/events{/privacy}","received_events_url":"https://api.github.com/users/astanin/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T09:07:14Z","updated_at":"2015-10-04T09:07:14Z","body":"I'll look into this.\r\n\r\n@vbwagner What is this FictionBook2.1xml schema file that you use? Is it the same as [FictionBook2.xsd](http://gribuser.ru/xml/fictionbook/2.0/xsd/FictionBook2.xsd)?"}}