Docbook5.0 has been released for some time, just to use DocBook to write a document, decided to follow the 5.0 standard, simply put 5.0 of some of the new features recorded.
Today, the 5.0 document declaration is different from 4.0, DOCBOOK5 has deprecated the use of DTDs, replaced by RELAX Ng,relax NG (read "relaxing"), a syntax-based XML Schema language that can be used to describe, define, and restrict XML Glossary. Learn about why some people don't like the document type definition (DEFINITION,DTD) and how RELAX ng improves on it. If you want to get a deeper understanding of RELAX ng, you can go to Google to search for a lot of introductory documents .
Here's a comparison of the 4.0 and 5.0 differences in the document declaration, first look at 4.0
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN'
'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'>
<article lang="en">
<title>Sample article</title>
<para>This is a very short article.</para>
</article>
Here's a new method for 5.0.
<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
<title>Sample article</title>
<para>This is a very short article.</para>
</article>
Pay attention! 5.0 of the language declaration method adopts standard method xml:lang= "En", this is shorthand method, all write should be xml:lang= "en-us".
The next article describes how to use the new relax NG to validate DocBook.