Difference between revisions of "DocBook"
Jump to navigation
Jump to search
m |
(hint to "pandoc" module) |
||
Line 1: | Line 1: | ||
Every few years someone tries to convert from [http://docbook.sourceforge.net/ DocBook] to ConTeXt, since the usual way via XSL-FO can’t provide the same typographical quality. Those who do it successfully every day probably don’t talk about it... | Every few years someone tries to convert from [http://docbook.sourceforge.net/ DocBook] to ConTeXt, since the usual way via XSL-FO can’t provide the same typographical quality. Those who do it successfully every day probably don’t talk about it... | ||
− | The [https://sourceforge.net/projects/dblatex/files/dbcontext/ dbcontext] project is dead. | + | The [https://sourceforge.net/projects/dblatex/files/dbcontext/ dbcontext] project is long dead. As of April 2016, there’s a set of stylesheets by Jan Tošovský available: [http://doctribute.com/blog/003-docbook-to-context-xsl-stylesheets-en.html Announcement & Documentation] / [https://github.com/doctribute/docbook-to-context-xsl-stylesheets Sources on GitHub]. |
− | + | Since 2019, there’s an experimental XML setup for a subset of DocBook: {{src|x-pandoc.mkiv}} | |
− | |||
+ | Try to use it like: | ||
+ | |||
+ | <texcode> | ||
+ | \usemodule[pandoc] % the name is misleading | ||
+ | \xmlregisterdocumentsetup{main}{xml:docbook} | ||
+ | \xmlprocessfile{main}{docbookfile.xml}{} | ||
+ | </texcode> | ||
[[Category:XML]] | [[Category:XML]] |
Latest revision as of 19:02, 30 September 2023
Every few years someone tries to convert from DocBook to ConTeXt, since the usual way via XSL-FO can’t provide the same typographical quality. Those who do it successfully every day probably don’t talk about it...
The dbcontext project is long dead. As of April 2016, there’s a set of stylesheets by Jan Tošovský available: Announcement & Documentation / Sources on GitHub.
Since 2019, there’s an experimental XML setup for a subset of DocBook: x-pandoc.mkiv
Try to use it like:
\usemodule[pandoc] % the name is misleading \xmlregisterdocumentsetup{main}{xml:docbook} \xmlprocessfile{main}{docbookfile.xml}{}