After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333099 - Validity errors !!!!
Validity errors !!!!
Status: RESOLVED FIXED
Product: gnome-user-docs
Classification: Core
Component: access-guide
2.13.x
Other All
: Normal minor
: ---
Assigned To: Maintainers of Gnome user documentation
Maintainers of Gnome user documentation
Depends on:
Blocks:
 
 
Reported: 2006-03-02 08:56 UTC by Luca Ferretti
Modified: 2006-03-08 14:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Luca Ferretti 2006-03-02 08:56:07 UTC
Documentation 
Section: 
 xmllint --valid --noout C/gnome-access-guide.xml
C/keynav.xml:1475: element sect2: validity error : Element sect2 content does
not follow the DTD, expecting (sect2info? , (title , subtitle? , titleabbrev?) ,
(toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist |
itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution
| important | note | tip | warning | literallayout | programlisting |
programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis |
funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis |
destructorsynopsis | methodsynopsis | formalpara | para | simpara | address |
blockquote | graphic | graphicco | mediaobject | mediaobjectco |
informalequation | informalexample | informalfigure | informaltable | equation |
example | figure | table | msgset | procedure | sidebar | qandaset | anchor |
bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm
| beginpage)+ , (refentry* | sect3* | simplesect*)) | refentry+ | sect3+ |
simplesect+) , (toc | lot | index | glossary | bibliography)*), got (anchor
anchor anchor title para para informaltable )
</sect2>
        ^
C/keynav.xml:1560: element sect1: validity error : ID keynav-20 already defined
<sect1 id="keynav-20">
                     ^
C/keynav.xml:1671: element anchor: validity error : ID keynav-21 already defined
<anchor id="keynav-21"/>
                      ^
C/keynav.xml:1715: element sect2: validity error : Element sect2 content does
not follow the DTD, expecting (sect2info? , (title , subtitle? , titleabbrev?) ,
(toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist |
itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution
| important | note | tip | warning | literallayout | programlisting |
programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis |
funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis |
destructorsynopsis | methodsynopsis | formalpara | para | simpara | address |
blockquote | graphic | graphicco | mediaobject | mediaobjectco |
informalequation | informalexample | informalfigure | informaltable | equation |
example | figure | table | msgset | procedure | sidebar | qandaset | anchor |
bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm
| beginpage)+ , (refentry* | sect3* | simplesect*)) | refentry+ | sect3+ |
simplesect+) , (toc | lot | index | glossary | bibliography)*), got (anchor
title para para informaltable )
</sect2>
        ^


Correct version:


Other information:
Comment 1 Joachim Noreiko 2006-03-02 09:06:27 UTC
We've switched to using includes instead of entities to load other XML files.
The xmllint command to validate has changed to reflect that IIRC.
Comment 2 Joachim Noreiko 2006-03-02 09:07:30 UTC
... though that's the user guide, not the access guide. Ignore me, it's early in the morning :)
Comment 3 Shaun McCance 2006-03-02 16:27:16 UTC
So what Joachim is saying is that the proper xmllint command is this:

xmllint --noout --xinclude --postvalid docname.xml

Nonetheless, the document is still invalid.  The anchor elements need to be placed after the title elements to conform to the DTD.
Comment 4 Don Scorgie 2006-03-02 18:07:43 UTC
My fault.  Should be fixed in CVS.  xmllint now runs cleanly.

Closing
Comment 5 Shaun McCance 2006-03-02 18:17:26 UTC
Oh, I meant to say something else too.  I've said it before, but I'm going to keep saying it over and over and over until everybody knows not to run xmllint manually.  Our wonderful build utilities do the proper xmlling command when you do 'make check'.  So, you know, spread the word.

Thanks for fixing, Don.
Comment 6 Joachim Noreiko 2006-03-07 18:28:30 UTC
*Ordinary docs writer* What's a build utility?
Comment 7 Luca Ferretti 2006-03-08 14:19:13 UTC
build utility == make and autotools framework == stuff to execute the proper command to create, in example, executable from source code on your system.

Note1 - make command can do a lot more if you have UN*X-compliant mind: make command, when invoked, simply run actions on conditions you wrote in a file

Note2 - autotools helps you to write conditions files for make command, checking for available and/or needed stuff on your system.

(I hope this can help you)