- 论坛徽章:
- 0
|
The tools are coming together, if slowly, to edit and format DocBook markup. But DocBook
itself is a means, not an end. We'll need other standards besides DocBook itself to accomplish
the searchable-documentation-database objective. There are two big issues: document
cataloguing and metadata.
The Scrollkeeper project aims directly to meet this need. It provides a simple set of script
hooks that can be used by package install and uninstall productions to register and unregister
their documentation.
Scrollkeeper uses the Open Metadata Format. This is a standard for indexing open-source
documentation analogous to a library card-catalog system. The idea is to support rich search
facilities that use the card-catalog metadata as well as the source text of the documentation
itself.
SGML
In previous sections, we have thrown away a lot of DocBook's history. XML has an older
brother, SGML or Standard Generalized Markup Language.
Until mid-2002, no discussion of DocBook would have been complete without a long
excursion into SGML, the differences between SGML and XML, and detailed descriptions of
the SGML DocBook toolchain. Life can be simpler now; a XML DocBook toolchain is
available in open source, works as well as the SGML toolchain ever did, and is easier to use,
If you don't think you'll ever have to deal with old SGML-Docbook documents, you can skip
the remainder of this section.
DocBook SGML
DocBook was originally an SGML application, and there was an SGML-based DocBook
toolchain that is now moribund. There are minor differences between the DocBook SGML
DTD and the DocBook XML DTD, but for an introductory discussion we can ignore them.
The only one that's normally user-visible is that in SGML contentless tags did not need to
have a trailing slash added to them before the closing >. (Requiring the trailing / means XML
parsers can be a lot simpler, because they don't have to know about the DTD to know which
opening tags need closers.)
Versions of HTML up to 4.01 (before XHTML) were SGML applications. TEI was originally
an SGML application, too. The groups managing all three DTDs jumped to XML for the |
|