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
3
votes
1 answer

how to remove the word "chapter" in the title of a docbook chapter

I have a docbook document and when I create a PDF I want it to display the chapter title without the word "Chapter" in front of it. According to this the following should work: My custom stylesheet: (doc.xsl)
rve
  • 5,897
  • 3
  • 40
  • 64
3
votes
1 answer

Docbook stylesheet and tables, FOP error

I've never experienced this error since I use Docbook. I've looked it up and found out that this error was fixed earlier in the past (and also I gave a try to do the same steps as it was explained). Unfortunately, I haven't managed to fix it on my…
Roland Burda
  • 110
  • 1
  • 8
3
votes
2 answers

XSL-FO - how to continue numbers in two list-blocks?

Does somebody know how to achieve this with XSL-FO transformation? The question details should be clear from the codes below. Input:
Section 1 item 1.1
user219882
  • 15,274
  • 23
  • 93
  • 138
3
votes
1 answer

Function similar to sgml-tag for the nXml mode with DocBook tags

The Emacs function sgml-tag is just what I need for my DocBook editing. However, I edit DocBook in nXml mode and I can't seem to find an alternative. sgml-tag still works fine, but does not offer XML tags. My use case is: highlight a region, press a…
mart1n
  • 5,969
  • 5
  • 46
  • 83
3
votes
2 answers

How to loop with XSLT through hierarchical nodes?

I am trying to traverse Docbook section nodes. Their structure are as follows: So sect1 only have sect2…
Marcel
  • 6,143
  • 15
  • 46
  • 52
3
votes
1 answer

Convert XSD documentation into DocBook

I've been looking for a template to achieve this. Apparently, only commercial applications, such as oXygen can do that. Is there any free tool that can do it? Or at least it would be great to have a base template to customize instead of writting it…
Antonio Pérez
  • 6,702
  • 4
  • 36
  • 61
3
votes
1 answer

XSLT: Conditionally add Modify Substring

I have a function that adds a zero-width characters. It's not quite working the way I want it to though. How do I get it to add the zero-space character every 15 chars only if it does not contain a normal space?
Ace
  • 821
  • 3
  • 16
  • 37
3
votes
4 answers

Using Maven for maintaining user documentation

We are using Maven for building a Java server-style application. It consists of several modules (in a single Maven "reactor") which can be plugged together to generate a final product (essentially a .jar) with the features enabled that the customer…
Waldheinz
  • 10,399
  • 3
  • 31
  • 61
3
votes
1 answer

How to add @xml:base to my .xml files?

I need a stylesheet to convert my docbook xml files so that they now include a xml:base element to my section tags. How do I go about doing that (since xml:base needs system and node info???) Input:
Ace
  • 821
  • 3
  • 16
  • 37
3
votes
2 answers

XSL-fo Image size issue with pdfs

I have a large number of XML documents which are created in docbook and, through maven, are published in both an html for and a pdf form. The generations works fine, and the html looks fine. The issue i'm having is in the size of the images in the…
Ace
  • 821
  • 3
  • 16
  • 37
3
votes
0 answers

How to generate documentation from css file?

I reference to CSSDoc specification and want to generate comment documentation from css file. The first thought used phpdocumentor tool. When execute phpdoc -o HTML:frames:default -f main.css -t docs command, i got "File not parsed,not a php file"…
DonaldIsFreak
  • 77
  • 1
  • 1
  • 7
3
votes
2 answers

Best practice for writing reusable documentation

Our company has a rather small product line but the usage can be quite complex. The current situation is that the (internal and external) documentation is spread over various places: Wiki, Adobe Indesign files, docs, text files, inline documentation…
3
votes
1 answer

Using Schematron to identify a space as first character in element

Is it possible to write a schematron rule/assertion that will identify a space(s) at the start of an element? I need a way to flag elements that begin with a space for possible removal of the space, but I don't want to forcibly remove such spaces…
wolfmason
  • 399
  • 1
  • 13
3
votes
1 answer

Can ENTITY declarations be nested in referenced XML files?

I'm working on a rather large DocBook XML document. The main book has the chapters but includes all the subsections by reference using entities. Something like this: main.book.xml:
Jerry Fernholz
  • 685
  • 5
  • 11
3
votes
1 answer

Docbook xi:include

I am trying to create a docbook. I have created a main XML book and inside it I am using to add different chapters. I am following DocBook XSL: The Complete Guide / Using XInclude to create book and chapter files. Here is my main XML…
Joydeep
  • 147
  • 14
1 2
3
23 24