Lire::DocBookParser(3pm)

Lire::DocBookParser3pm

Base docbook parser.

Usage

    package MyParser;
    use base qw/ Lire::XMLParser /;

Overview

This package contains a Lire::XMLParser DocBook parser. It defines the relevant "_start", "_end" and "_char" methods for the DocBook subset used by Lire. All defined handlers have the form "dbk_name_start", "dbk_name_end" and "dbk_name_char" (when the element accepts PCDATA content).

Its base functionality is to collect the DocBook markup for later use. It will subclassed most of the time.

Client methods

dbk_init()

Subclasses should call this method whenever the state of the DocBook parse should start. This is called from the parse_start() method when the parser is used standalone.

dbk_string()

Returns the DocBook XML accumulated by the parser. This is returned from parse_end() method when used standalone.

XML specifications methods implementation

namespaces()

DocBook doesn't use namespace, so this method returns an empty hash reference.

elements_spec()

Returns the elements specification for the DocBook subset supported by Lire.

Version

$Id: DocBookParser.pm,v 1.4 2006/07/23 13:16:29 vanbaal Exp $

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Author

  Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.