LWN: Comments on "A survey of the DocBook landscape" https://lwn.net/Articles/199200/ This is a special feed containing comments posted to the individual LWN article titled "A survey of the DocBook landscape". en-us Wed, 22 Oct 2025 03:51:30 +0000 Wed, 22 Oct 2025 03:51:30 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net OASIS Standard https://lwn.net/Articles/361319/ https://lwn.net/Articles/361319/ JLCdjinn And over three years later (as of 2009-11-02), <a href="http://norman.walsh.name/2009/11/04/docbook50">DocBook 5 is now an OASIS Standard</a>. Tue, 10 Nov 2009 20:36:29 +0000 DocBook 5.0 finalized https://lwn.net/Articles/268298/ https://lwn.net/Articles/268298/ JLCdjinn <blockquote> <p>DocBook 5 will likely have a stable release soon.</p> </blockquote> <p>Clearly, by "soon" I meant 17 months. Ahem. My prognostication abilities leave something to be desired. In any case, <a href="http://norman.walsh.name/2008/02/06/docbook50">DocBook 5.0 has been finalized</a> (that is, approved as a committee draft) as of 2008-02-06! And there was much rejoicing!</p> <p>When I wrote this article, DocBook 5 was at beta 7; after two more betas, it also went through 7 release candidates before arriving at 5.0 final. There were a number of bug fixes and minor enhancements, but the overall DocBook architecture is largely the same as described in this article. For all the gory details, check out <a href="http://docbook.org/xml/5.0/ChangeLog">the change log</a>.</p> Fri, 08 Feb 2008 00:42:58 +0000 Missing where? https://lwn.net/Articles/199947/ https://lwn.net/Articles/199947/ JLCdjinn <blockquote><p>I use docbook2man to create man pages.</p><p>If there are better tools (not ideas) for transforming a docbook file to a man page I will certainly have a look.</p></blockquote> <p>Some casual poking around the Internet leads me to believe that the DocBook XSL stylesheets seem to be a better-supported solution than docbook2man. For example, I created a simple DocBook-formatted man page with the <code>lang="ru"</code> attribute set on the root element. I then ran <code>xsltproc http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl manpage.docbook</code>, and the resulting troff source contains Russian section headings (although I cannot speak at all to their accuracy, not being able to speak Russian and all). Any incompleteness or inaccuracy in a particular l10n should be fixed through the DocBook XSL stylesheets project.</p> <p>Granted, after generating the UTF-8 troff source, I was unable to actually view the Russian headings in a formatted man page, but that's a different story...</p> Mon, 18 Sep 2006 21:56:17 +0000 Missing where? https://lwn.net/Articles/199914/ https://lwn.net/Articles/199914/ kreutzm <p> I use docbook2man to create man pages. You can read the entire problem including my patch and attempts to reach the author or Debian maintainer at <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=253085">my bug report</a> regarding this issue. </p> <p> The first of your items sounds interesting, but from a practical point of view (i.e. for applications I envisage) having all languages in one file does not look optimal. The second paragraph is exactly the one describing my problem. If there are better tools (not ideas) for transforming a docbook file to a man page I will certainly have a look. The third paragraph describes an issue I have not thought about. First, of course, as I speak english but secondly because I treat docbook like a programming language - you'll have to know the tags/keywords to get your work done. It's very interesting, though, that there are solutions for this, even. Hopefully it'll work even if documents are interchanged. </p> Mon, 18 Sep 2006 19:42:35 +0000 Missing where? https://lwn.net/Articles/199883/ https://lwn.net/Articles/199883/ JLCdjinn <p>There are issues here at a variety of levels that usually include DocBook (the language) as well as tools that process DocBook. First, you (in the generic sense) may want to write the same text in several different languages in the same document. This is called profiling, and DocBook has facilities for profiling such as the <code>lang</code> and <code>os</code> attributes. <em>DocBook XSL: The Complete Guide</em> has a chapter called <a href="http://sagehill.net/docbookxsl/Profiling.html">"Profiling (conditional text)"</a> that talks about these issues both in DocBook as well as support for these features in the DocBook XSL stylesheets.</p> <p>It sounds like you may also be interested in i18n (internationalization) support with respect to automatically generated portions of an output document. Clearly, such support is the responsibility of tools that process DocBook. Again, <em>DocBook XSL: The Complete Guide</em> provides a thorough treatment of the way in which the DocBook XSL stylesheets allow for language-specific generated content in its section titled <a href="http://sagehill.net/docbookxsl/Localizations.html">"Language support"</a>.</p> <p>One criticism that you might level against DocBook (and many XML dialects) is the choice of language (usually English) for their tag names. Clearly element names like <code>article</code> and <code>section</code> only have meaning to those who understand English. A problem like this must be solved at the XML level; one possible solution is the DSRL (Document Schema Renaming Language) approach. See the DSRL documents on <a href="http://dsdl.org/">the DSDL (Document Schema Definition Languages) web site</a> for details.</p> <p>It would be interesting to learn what tools you are using in order to try to fix the problem with those tools.</p> Mon, 18 Sep 2006 17:43:39 +0000 So far, so missing i18n https://lwn.net/Articles/199818/ https://lwn.net/Articles/199818/ kreutzm I really like docbook, but what is severly missing is i18n. I wrote several man pages in german, but the transformation to nroff insists on using english terms and conventions. Writing to the upstream authors or opening bugs (with patches!) in the bug tracker of my distribution did not cause any response. I hope future versions of docbook deal with this deficiency.<br> Sun, 17 Sep 2006 20:14:57 +0000