{"action":"created","issue":{"url":"https://api.github.com/repos/tomschr/daps-test4/issues/217","labels_url":"https://api.github.com/repos/tomschr/daps-test4/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/tomschr/daps-test4/issues/217/comments","events_url":"https://api.github.com/repos/tomschr/daps-test4/issues/217/events","html_url":"https://github.com/tomschr/daps-test4/issues/217","id":59679542,"number":217,"title":"Improve error handling for --rootid parameter [sf#218]","user":{"login":"tomschr","id":1312925,"avatar_url":"https://avatars.githubusercontent.com/u/1312925?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschr","html_url":"https://github.com/tomschr","followers_url":"https://api.github.com/users/tomschr/followers","following_url":"https://api.github.com/users/tomschr/following{/other_user}","gists_url":"https://api.github.com/users/tomschr/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschr/subscriptions","organizations_url":"https://api.github.com/users/tomschr/orgs","repos_url":"https://api.github.com/users/tomschr/repos","events_url":"https://api.github.com/users/tomschr/events{/privacy}","received_events_url":"https://api.github.com/users/tomschr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"fsundermeyer","id":1872885,"avatar_url":"https://avatars.githubusercontent.com/u/1872885?v=3","gravatar_id":"","url":"https://api.github.com/users/fsundermeyer","html_url":"https://github.com/fsundermeyer","followers_url":"https://api.github.com/users/fsundermeyer/followers","following_url":"https://api.github.com/users/fsundermeyer/following{/other_user}","gists_url":"https://api.github.com/users/fsundermeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/fsundermeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsundermeyer/subscriptions","organizations_url":"https://api.github.com/users/fsundermeyer/orgs","repos_url":"https://api.github.com/users/fsundermeyer/repos","events_url":"https://api.github.com/users/fsundermeyer/events{/privacy}","received_events_url":"https://api.github.com/users/fsundermeyer/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-03T17:57:03Z","updated_at":"2015-03-03T17:57:10Z","closed_at":"2015-03-03T17:57:05Z","body":"**Reported by fsundermeyer on 2014-03-10 11:29 UTC**\n--rootid is currently supported for the following elements:\r\n\r\nappendix article bibliography book chapter colophon dedication glossary index part preface qandaset refentry reference sect1 section set setindex\r\n\r\nIf using a riootid from an element not in the list above, the error message is displayed when the xslt processor exits. Would be good to catch this error earlier and display a clear error message.\r\n\r\nThe following error occurs when using a rootid from a sect3 element:\r\n\r\n    Creating fo-file...\r\n    /usr/share/daps/libexec/daps-xslt --xinclude --param \"show.comments=0\" \\\r\n    --param \"generate.permalink=0\" --param \"ulink.show=1\" --stringparam \\\r\n    \"draft.mode=no\" --stringparam \"styleroot=/usr/share/xml/docbook/stylesheet/suse2013/\" \\\r\n    --param \"format.print=0\" --stringparam \"img.src.path=/home/foo/doc/opensuse/trunk/documents/sle/en/build/.images/color/\" \\\r\n    --param \"fop1.extensions=1\" --param \"xep.extensions=0\" \\\r\n    --stringparam \"rootid=sec.apache2.ssl.certificate.custom\"  --output /home/foo/doc/opensuse/trunk/documents/sle/en/build/.tmp/sec.apache2.ssl.certificate.custom-fop_color_en.fo \\\r\n    --stylesheet /usr/share/xml/docbook/stylesheet/suse2013/fo/docbook.xsl \\\r\n    --file /home/foo/doc/opensuse/trunk/documents/sle/en/build/.profiled/p_ipf_x86_amd64_em64t_ipseries_s390_zseries_sles/MAIN.SLEDS.xml \\\r\n    /usr/bin/xsltproc  \r\n    ERROR: Document root element ($rootid=sec.apache2.ssl.certificate.custom) for \\\r\n    FO output must be one of the following elements: appendix article bibliography \\\r\n     book chapter colophon dedication glossary index part preface qandaset refentry \\\r\n    reference sect1 section set setindex \r\n    make: ***     [/home/foo/doc/opensuse/trunk/documents/sle/en/build/.tmp/sec.apache2.ssl.certificate.custom-fop_color_en.fo] \\\r\n    Error 10"},"comment":{"url":"https://api.github.com/repos/tomschr/daps-test4/issues/comments/76998147","html_url":"https://github.com/tomschr/daps-test4/issues/217#issuecomment-76998147","issue_url":"https://api.github.com/repos/tomschr/daps-test4/issues/217","id":76998147,"user":{"login":"tomschr","id":1312925,"avatar_url":"https://avatars.githubusercontent.com/u/1312925?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschr","html_url":"https://github.com/tomschr","followers_url":"https://api.github.com/users/tomschr/followers","following_url":"https://api.github.com/users/tomschr/following{/other_user}","gists_url":"https://api.github.com/users/tomschr/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschr/subscriptions","organizations_url":"https://api.github.com/users/tomschr/orgs","repos_url":"https://api.github.com/users/tomschr/repos","events_url":"https://api.github.com/users/tomschr/events{/privacy}","received_events_url":"https://api.github.com/users/tomschr/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T17:57:10Z","updated_at":"2015-03-03T17:57:10Z","body":"**Commented by tom_schr on 2014-03-10 13:06**\nYou can use xmlstarlet. To search in the internal format (see `daps-xslt/common/get-all-used-files.xsl`), use the following invocation:\r\n\r\n    $ xml sel -t -v \"//div[@id='$ROOTID']/@remap\" XMLFILE\r\n\r\nThis gives you the element that belongs to its @id.\r\n"}}