Difference between revisions of "DocBook"

From Wiki
Jump to navigation Jump to search
(new)
 
(hint to "pandoc" module)
 
(One intermediate revision by one other user not shown)
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. But there is a new (as of April 2016) set of stylesheets by Jan Tošovský available:
+
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].
  
* [http://doctribute.com/blog/003-docbook-to-context-xsl-stylesheets-en.html Announcement]
+
Since 2019, there’s an experimental XML setup for a subset of DocBook: {{src|x-pandoc.mkiv}}
* [https://github.com/doctribute/docbook-to-context-xsl-stylesheets Sources on GitHub]
+
 
 +
Try to use it like:
 +
 
 +
<texcode>
 +
\usemodule[pandoc] % the name is misleading
 +
\xmlregisterdocumentsetup{main}{xml:docbook}
 +
\xmlprocessfile{main}{docbookfile.xml}{}
 +
</texcode>
 +
 
 +
[[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}{}