Quoting Petter Reinholdtsen (2017-07-08 12:31:26) > > Package: pandoc > Version: 1.12.4.2~dfsg-1 > > The DocBook output generated by pandoc is missing the XML header > documenting the format. Is there a reason for this? > > Instead of getting this result, > > % printf "header\n===\n\nbody\n"|pandoc -o - -t docbook - > <sect1 id="header"> > <title>header</title> > <para> > body > </para> > </sect1> > % > > I suggest to return something like this: > > % printf "header\n===\n\nbody\n"|pandoc -o - -t docbook - > <?xml version="1.0" encoding='UTF-8' ?> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> > <sect1 id="header"> > <title>header</title> > <para> > body > </para> > </sect1> > % > > This allow XML validators to check the content.
It seems Pandoc supports this already. Perhaps you need to pass this option: --standalone - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature

