[erlang-questions] is anyone else using erlang docbuilder?

Matthias Lang <>
Fri Oct 26 13:11:19 CEST 2007


I've been converting the FAQ source from 'docbook' to 'docbuilder' and
run into a few things with that "I must be missing something"
feeling. Maybe someone can point me in the right direction.

Problem #1: code/shell snippets in the document

  With docbook, I could do this sort of thing for examples:

        1> self().
        2> x - y.
        ** exited: {badarith,[{erl_eval,eval_op,3},
                      {shell,eval_loop,2}]} **
        3> self().

  If I do the same in docbuilder, except with a <code> block, docbuilder
  chokes. Short of escaping every angle bracket, is there some way to
  do the above?

Problem #2: I can't put italic text in a title

  Or: why doesn't the <em> tag seem to be allowed in a title?

Bug report: empty code blocks make docbuilder crash

   gets me
   39> docb_transform:file("top").
   Processing "getting_started.xml"
   *** Error: XML export error:
   *** Error: Parse error when building chapter how_do_i
   This is bad for several reasons. (a) I don't see why an empty code
   block is bad. (b) The crash talks about two different filenames, only
   one of which is the right one. (c) the crash doesn't tell me what line
   it crashed on, making it hard to find the problem in the first place.


More information about the erlang-questions mailing list