Scroll to navigation

DBMERGE(1) DocBook Splitting tools DBMERGE(1)

NAME

dbmerge - merge splited DocBook document

SYNOPSIS

dbmerge [options] input_file [output_file]

dbmerge --help

DESCRIPTION

dbmerge process "xi:include" elements (see <http://www.w3.org/TR/xinclude/>). That is merge splited XML file to one file.

All "xml:base" attributes (see <http://www.w3.org/TR/xmlbase/>) are processed and them removed. Relative references in "fileref" and "url" attributes are properly rewrited.

If no output file name is specified on command line, output is dumped to standard output and relative references are rewrited as if output file would be in current work directory.

OPTIONS

Coma-separated list of paths in which are located local objects (see LOCAL OBJECTS below). All paths are expanded as the standart Unix shell would do, see File::Glob(3perl) for details. Relative paths is related to curent working directory. If path contains $XML_BASE at the begining it is replaced by real base of current processing document. Default paths are LocalObjects, MediaObjects, ImageObjects and #Pictures in base directory of current processing document.
Coma-separeted list of paths which are addeded to preiously specified or the default local objects paths. See --lo-dirs option.
Name of local objects directory for newly created documents (see LOCAL OBJECTS below). Relative path is related to newly created documents. Default directory is LocalObjects.
Move local objects instead copy them. See LOCAL OBJECTS below.
XML base URI (Uniform Resource Identifier) for input document. See <http://www.w3.org/TR/xmlbase/> for details. You may need change default if you simple copy an DocBook document without copying referenced files nor changing "fileref" attributes. On this case set XML base to orginal location. Note, URI is required not (unix) file name.
Increase verbosity level.
Decrease verbosity level.
Dump version information and exit.
Dump help screen and exit.
Show this manual page and exit.

LOCAL OBJECTS

Local objects are special files (pictures, audio files, ...) in directories specified by --lo-dirs option. If DocBook document refer (via "fileref" attribute) to this directory, the files are copied (or moved) to local "Local Objects Directory" specified by --lo-dir option. Moreower all files with same name and differ suffix (after last dot) are copied (or moved) too.

BUGS AND TODO

  • There is no support for attributes "parse" and "encoding" in "xi:include" element yet.
  • There is no support for "xi:fallback" element yet.

SEE ALSO

dbautosplit(3), "DocBook: The Definitive Guide" <http://www.docbook.org/tdg/en/html/docbook.html>

AUTHOR

Martin Lazar <mlazar@suse.cz>

2004-01-27 0.6