{"action":"opened","issue":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1893","labels_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1893/labels{/name}","comments_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1893/comments","events_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1893/events","html_url":"https://github.com/dita-ot/dita-ot/issues/1893","id":68475137,"number":1893,"title":"[OT-2.0] Can't Use Extension Point dita.xsl.html.cover","user":{"login":"shaneataylor","id":9557777,"avatar_url":"https://avatars.githubusercontent.com/u/9557777?v=3","gravatar_id":"","url":"https://api.github.com/users/shaneataylor","html_url":"https://github.com/shaneataylor","followers_url":"https://api.github.com/users/shaneataylor/followers","following_url":"https://api.github.com/users/shaneataylor/following{/other_user}","gists_url":"https://api.github.com/users/shaneataylor/gists{/gist_id}","starred_url":"https://api.github.com/users/shaneataylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaneataylor/subscriptions","organizations_url":"https://api.github.com/users/shaneataylor/orgs","repos_url":"https://api.github.com/users/shaneataylor/repos","events_url":"https://api.github.com/users/shaneataylor/events{/privacy}","received_events_url":"https://api.github.com/users/shaneataylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T19:27:48Z","updated_at":"2015-04-14T19:27:48Z","closed_at":null,"body":"Trying to add overrides to this extension point fails because the extension point is specified after templates in map2html-coverImpl_template.xsl.\r\n\r\nThis code:\r\n```<dita:extension id=\"dita.xsl.html.cover\" behavior=\"org.dita.dost.platform.ImportXSLAction\" xmlns:dita=\"http://dita-ot.sourceforge.net\"/>```\r\nis at the end of map2html-coverImpl_template.xsl, after templates, so on build you get an error that all import statements must occur at the start.\r\n\r\nTo fix:\r\n* Move the templates from map2html-coverImpl_template.xsl to another XSL file.\r\n* Specify an <xsl:import> to the new XSL file before the extension point.\r\n"}}