Hello,

Karl Berry:
> Is there an easy way to validate a docbook document?

I use

$ xmllint --sgml --noout

xmllint[1] comes with Daniel Veillard's libxml2 package.  A quick
check revealed this:

> <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
> <book lang="en">
>  <title>Sample Manual 1.0</title>
>  <bookinfo>
>   <abstract>
>    <para>
> This is a short example of a complete Texinfo file, version 1.0.
>    </para>

>    <para>
> Copyright &copy; 2002 Free Software Foundation, Inc.
>    </para></abstract></bookinfo>
>  <chapter id="Top">

chapter starts

>   <title>Short Sample</title>
>   <para>
> This is the top node.

>   <abstract>

chapter/para/abstract starts


>    <para>
> This is a short example of a complete Texinfo file, version 1.0.
>    </para>

>    <para>
> Copyright &copy; 2002 Free Software Foundation, Inc.
>   </para>
> </chapter>

chapter ends

Omitting --sgml parameter causes more errors to be found, due to SGML
being not as strict as XML in nature.

Regards,

[1] http://www.xmlsoft.org/
-- 
Alper Ersoy


_______________________________________________
Bug-texinfo mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to