docbook-5

Markup-less way to title and link abbrevations/acronyms to glossary entries

旧城冷巷雨未停 提交于 2020-01-06 14:10:49
问题 Background: I'm writing a DocBook 5 document (and including in it some already-written text) with the intention of generating HTML from it. I would like to get the semantic markup correct from the beginning so I don't need to re-do it later, but the standard way does not seem to generate what I'm looking for, so I'm not sure if I should deviate from it or not, depending on what is possible with XSL. Current setup: My glossary only has abbreviated items. It consists of glossentry s each

Detecting table element error in docbook 5.0 document

断了今生、忘了曾经 提交于 2019-12-25 08:29:37
问题 I did not have much luck to have a complete answer in my previous post. So I am trying yet again with a different approach. How would one detect the error in the following docbook article with table: $ cat article.xml <?xml version="1.0" encoding="utf-8" standalone="no"?> <article xmlns="http://docbook.org/ns/docbook" version="5.0"> <title>Title</title> <table> <caption>caption</caption> <tbody> <tr> <td rowspan="2"> <para>my para</para> </td> </tr> </tbody> </table> </article> Obviously

DocBook 5 rendering without abbrev tag

谁说我不能喝 提交于 2019-12-25 02:55:45
问题 My DocBook 5 document contains glossentry tags that contain abbrev tags. The abbrev tags do not seem to contribute anything whatsoever to the rendered HTML. I'm new to DocBook and XSLT. Where do I need to start looking to change this? I've been looking through the docs and aside from being surprised by this apparently being the default behaviour, I'm not sure where to look next to troubleshoot. Setup: My DocBook file starts simply with <book xmlns:xl="http://www.w3.org/1999/xlink"> . I point

What is the correct xlink namesapce to use in Docbook 5?

回眸只為那壹抹淺笑 提交于 2019-12-13 21:24:04
问题 If I have the following Docbook 5 XML: <article xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0"> <title>Test</title> <section> <title>LS command</title> <para xml:id="ls"> This command is a synonym for <command linkend="dir">DIR</command> command. </para> <para xml:id="dir"> This command is a synonym for <command linkend="ls">LS</command> command. </para> <para> <application xl:href="http://www.gnu.org/software/emacs/">Emacs</application> </para> <

Why do DocBook generated XHTML5 Section titles have ASCII #c2 characters in them?

独自空忆成欢 提交于 2019-12-11 17:56:40
问题 I noticed my generated XHTML5 numbered section titles have a  between the number and the title string. I thought this was a generation error. But no, the gentext file of my DocBook distribution, common/en.xml, actually specifies this. Line 338 of common/en.xml: <l:template name="section" text="%n. %t"/> The dot and space following the %n are, when viewed in a hex editor, ASCII character codes C2 and A0, which are the  and NBSP characters respectively. I can understand NBSP. But why the Â? I

Internal references in docbook 5

℡╲_俬逩灬. 提交于 2019-12-11 12:19:37
问题 I tried to write an internal reference to another section in the same document. But references are not working. There is a reference, which is located in one section in my docbook-article <xref linkend="id1</b>" endterm="Управление Роботом из программы short"/> The part of another section in this article: <section id="id1"> <title>Управление Роботом из программы </title> <titleabbrev id="id1 short"> Управление Роботом из программы </titleabbrev> <para> ... </para> </section> How to write this

How to generate pdf from docbook 5.0

感情迁移 提交于 2019-12-03 04:25:26
问题 I've written a docbook 5.0 document with the header: <?xml version="1.0" encoding="UTF-8"?> <book version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook"> and docbook2pdf on Ubuntu 9.10 prints many error messages and doesn't do any pdf document.

How to generate pdf from docbook 5.0

↘锁芯ラ 提交于 2019-12-02 17:46:53
I've written a docbook 5.0 document with the header: <?xml version="1.0" encoding="UTF-8"?> <book version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook"> and docbook2pdf on Ubuntu 9.10 prints many error messages and doesn't do any pdf document. The errors are: openjade:test.xml:2:0:E: prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO