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
26
votes
4 answers

best way to implement custom pretty-printers

Customizing pprint.PrettyPrinter The documentation for the pprint module mentions that the method PrettyPrinter.format is intended to make it possible to customize formatting. I gather that it's possible to override this method in a subclass, but…
intuited
  • 23,174
  • 7
  • 66
  • 88
24
votes
5 answers

Is there any way to convert markdown to asciidoc (or be able to produce the same HTML output)?

Here is my problem, normally I convert asciidoc documents to HTML (or more precisely asciidoc --> docbook --> html) but here I've been given a markdown document. I would like to be able to produce an HTML document from that markdown document that…
Laurent T
  • 1,070
  • 4
  • 13
  • 25
24
votes
13 answers

What is the recommended toolchain for formatting XML DocBook?

I've seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix…
Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
20
votes
7 answers

How to generate pdf from docbook 5.0

I've written a docbook 5.0 document with the header:
Szymon Lipiński
  • 27,098
  • 17
  • 75
  • 77
11
votes
3 answers

docbook wysiwyg editor for the web

Is there any ready-to-go docbook editor for web applications out there? I'm thinking of something like FCKeditor or TinyMCE that returns a docbook xml code back to the web application. I am aware that FCKeditor is customizable to do this, but I have…
Stefan Armbruster
  • 39,465
  • 6
  • 87
  • 97
10
votes
4 answers

DocBook to Word Conversion?

I need some help with conversion of DocBook files to Microsoft Word files. Do I need an XSL file for the transformation?
rudimenter
  • 3,242
  • 4
  • 33
  • 46
9
votes
3 answers

Convert word (.docx) to docbook

I have been tasked to find a way to convert a large amount of .docx files to docbook 5. Currently, we open the file in openoffice and save to docbook. This is a time consuming task, but I am confident there is a better way. These files will then be…
matchew
  • 19,195
  • 5
  • 44
  • 48
9
votes
4 answers

XML to TeX or how to get a beautiful PDF from XHTML-like source

Superficially, an easy question: how do I get a great-looking PDF from my XML document? Actually, my input is a subset of XHTML with a few custom attributes added (to save some information on citation sources, etc). I've been exploring some routes…
mb21
  • 34,845
  • 8
  • 116
  • 142
8
votes
1 answer

DocBook: Specifying code or markup

You can specify equations using and also several others, but what tag must be used to specify code? More specifically, PHP, HTML, CSS and Javascript? Is there a plugin that you can use with OxygenXML to add these features automatically? I…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
7
votes
7 answers

Creating documentation with maven

I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the…
toolkit
  • 49,809
  • 17
  • 109
  • 135
7
votes
3 answers

DocBook macros?

Is there any way of defining macros (like tex macros o latex defines) in DocBook documents? DocBook is very verbose, and macros would help a lot. I didn't find them in quickstart tutorials. If so, could anyone provide a simple example or a link…
cibercitizen1
  • 20,944
  • 16
  • 72
  • 95
7
votes
1 answer

XSL FO Docbook content left margin

I'm using Docbook 5 (docbook-xsl-ns), generating PDF with Apache FOP and I would like to move all text to the left. How can I do it? Source XML is:
Usage mvn archetype:generate…
Xdg
  • 1,735
  • 2
  • 27
  • 42
7
votes
2 answers

find next-to-last node with xpath

I have a XML document with chapters and nested sections. I am trying to find, for any section, the first second-level section ancestor. That is the next-to-last section in the ancestor-or-self axis. pseudo-code: mychapter
Tim
  • 1,013
  • 3
  • 17
  • 36
6
votes
1 answer

DocBook XSL: how do I stop HTML generation from outputting a title attribute?

The DocBook XSL's HTML generator always outputs a title attribute for div sections that come from DocBook elements that have titles. So articles, books, sections, etc all have a title attribute. I don't want this in my HTML. It causes Firefox at…
Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
6
votes
4 answers

wiki/docbook/latex documentation template system

I'm searching for a documentation template system or rather will be creating one. It should support the following features: Create output in PDF and HTML Support for large & complicated (LaTeX) formulas References between…
Wolfgang Ulmer
  • 3,450
  • 2
  • 21
  • 13
1
2 3
23 24