Questions tagged [docbook]

DocBook provides a system for writing structured documents using SGML or XML (semantic markup). It is particularly well-suited to books and papers for technical documentation. Earlier versions of DocBook were formally defined as document type definitions (DTDs). From version 5.0 onwards, SGML support is discontinued and the official definition is a RELAX NG schema.

DocBook provides a system for writing structured documents using SGML or XML (semantic markup). It is particularly well-suited to books and papers for technical documentation. Earlier versions of DocBook were formally defined as document type definitions (DTDs). From version 5.0 onwards, SGML support is discontinued and the official definition is a RELAX NG schema.

http://docbook.org/

352 questions
2
votes
1 answer

Docbook XML to PDF, no 'ő' and 'ű' characters

I have the following problem for a while. I have been trying to convert Docbook XML to PDF. Almost everything goes well except the PDF file has no 'ő' and 'ű' chars in the text, they are replaced with '#'. Which programs do I use? - Cygwin with…
Roland Burda
  • 110
  • 1
  • 8
2
votes
1 answer

syntax highlighting in docbook

I use xalan-j_2_7_1 and docbook-xsl-1.76.1 to generate documentation. I saw in hibernate documentation, that they use syntax highlighting in there code. How can i do it in my doc?
Daniel
  • 417
  • 1
  • 7
  • 14
2
votes
5 answers

Org-mode exporting to pdf for emacs.app on Mac OS X

Org-mode, love it. I've been trying to set up the mac to export anything to pdf. No easy way yet. First there's org-export-as-pdf which first exports to pdf then generates a pdf. I get "pdflatex: command not found", fair enough... stumped. Other…
SYF970
  • 61
  • 2
  • 5
2
votes
1 answer

Can I set attributes conditionally in an XSLT stylesheet?

I'm trying to automate some xslt transformations, and I need a way to set xsl:output attributes based on the content in the XML files being transformed. Specifically, I want to look into the XML files, grab the lang attribute from the root element,…
wolfmason
  • 399
  • 1
  • 13
2
votes
2 answers

How does one specify a section-like entity without a title in a docbook article?

I have an article that I'm converting to Docbook format. The article contains small lightweight sections that group together a few (simple) paragraphs. The sections do not contain titles. I cannot find an element in Docbook that denotes this…
cmbrandenburg
2
votes
1 answer

Docbook / XML restrictions for ID / IDREF

In my (generated) docbook files I got an ID / IDREF pair that started with a number (say 015_code with the attributes xml:id / linkend and consequently a warning was emitted (XMLMind in this case): bad value for attribute "id" from namespace…
albert
  • 8,285
  • 3
  • 19
  • 32
2
votes
1 answer

Should DocBook be used for publishing technical documentation in English & Arabic?

I'm looking for the ideal tool to use for publishing technical documentation in English & Arabic (in the same document). Should I use DocBook, or is it better to stick with TeX/LaTeX? I am a complete beginner to both systems so there's no legacy…
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
2
votes
1 answer

How do I generate TOC-only HTML from DocBook?

Given a Docbook-based XML file, how do I extract just the table of contents (TOC) into its own HTML file - preferably without resorting to writing my own XSLT template? I am using xsltproc. I'm convinced that this must be obviously easy, but for…
Saša
  • 53
  • 4
2
votes
2 answers

XSL-FO: Forcing a page break between each

I'm trying to generate a mod spec with pdf generation. The way I have it be generated is using a contents.xml file which looks like this...
Ace
  • 821
  • 3
  • 16
  • 37
2
votes
2 answers

Unraveling the dependency tree for a set of XML files using XIncludes

I have a set of XML files (DocBook, to be specific). These use XML inclusions, aka XInclude, to reference one another. Given one of these XML files, what is the best way to figure out the list of files which reference it? I'm looking to build up the…
Matthew Simoneau
  • 6,199
  • 6
  • 35
  • 46
2
votes
1 answer

asciidoc: is there a way to create an anchor that will be visible in libreoffice writer?

Tl;dr; What is the correct way to create an anchor in docbook? and is there a way that will make the anchor visible in writer? Background I am trying to split up documentation that was previously in single open office documents into smaller…
Bruce Adams
  • 4,953
  • 4
  • 48
  • 111
2
votes
2 answers

Docbook publishing for different target audiences

I like to have one docbook xml document that has content for several target audiences. Is there a filter that enables me to filter out the stuff only needed for "advanced" users? The level attribute is invented by me to express what I have in mind. …
schoetbi
  • 12,009
  • 10
  • 54
  • 72
2
votes
1 answer

Doing an XSL transform of a branch of a Docbook element tree

I'd like to use the docbook XSL stylesheets to render various parts of a document, without transforming the entire thing. The complication is that some of these parts have elements whose linkend attributes are not located within the…
intuited
  • 23,174
  • 7
  • 66
  • 88
2
votes
1 answer

how can i change the html rendering of d:formalpara

This is how the default configuration renders a formalpara: this: foo bar will be rendered as this:

foo bar

I already set
daputzy
  • 45
  • 1
  • 6
2
votes
1 answer

Convert colored text from HTML to DOCBOOK (and to PDF)

I would like to create an xslt stylesheet to convert (simple) html to DOCBOOK (which will then be converted PDF via FO). All the basic formatting stuff works well. Now I want to have colors in the text. The HTML code looks like this:
uschroe
  • 25
  • 2