bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makeinfo --docbook outputs invalid XML


From: Alper Ersoy
Subject: Re: makeinfo --docbook outputs invalid XML
Date: Sat, 14 Dec 2002 05:59:45 +0200
User-agent: Mutt/1.4i

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]