Commits

Shlomi Fish committed e520b2b

DocBook 5.0 fixes.

1. change <bookinfo>, <articleinfo> , etc. to <info>.

2. Add the xmlns="" and other attributes to the opening tag.

3. Remove the DOCTYPE - it should no longer be there.

  • Participants
  • Parent commits a8aef24

Comments (0)

Files changed (1)

File docbook50.conf

 
 [header-declarations]
 <?xml version="1.0" encoding="{encoding}"?>
-<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
 {toc#}<?asciidoc-toc?>
 {numbered#}<?asciidoc-numbered?>
 
 [header]
 template::[header-declarations]
 
-<article xml:lang="{lang=en}">
-<articleinfo>
+<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:lang="{lang=en}">
+<info>
 template::[docinfo]
-</articleinfo>
+</info>
 
 [footer]
 </article>
 [header]
 template::[header-declarations]
 <refentry xml:lang="{lang=en}">
-<refentryinfo>
+<info>
 template::[docinfo]
-</refentryinfo>
+</info>
 <refmeta>
 <refentrytitle>{mantitle}</refentrytitle>
 <manvolnum>{manvolnum}</manvolnum>
 # Default source and manual to suppress DocBook XSL warnings.
-<refmiscinfo class="source">{mansource=&#160;}</refmiscinfo>
-<refmiscinfo class="manual">{manmanual=&#160;}</refmiscinfo>
-<refmiscinfo class="version">{manversion={revnumber}}</refmiscinfo>
+<ref class="source">{mansource=&#160;}</info>
+<ref class="manual">{manmanual=&#160;}</info>
+<ref class="version">{manversion={revnumber}}</info>
 </refmeta>
 <refnamediv>
     <refname>{manname1}</refname>
 [header]
 template::[header-declarations]
 
-<book xml:lang="{lang=en}">
-<bookinfo>
+<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:lang="{lang=en}">
+<info>
 template::[docinfo]
-</bookinfo>
+</info>
 
 [footer]
 </book>