Does not validate
Paul W. Frields
stickster at gmail.com
Mon May 19 15:01:25 UTC 2008
On Mon, 2008-05-19 at 18:56 +0800, Marc Wiriadisastra wrote:
> On Sun, 2008-05-18 at 21:37 +0800, Marc Wiriadisastra wrote:
> > For some reason I'm getting the following error in the F-8 directory for
> > the DuG.
> >
> > Document /home/marc/fedora-cvs/docs/desktop-user-guide/F-8/en_US/desktop-user-guide.xml does not validate
> >
> > This is when I'm trying to compile a html version to view possible
> > improvements.
> >
> > Any suggestions would be great.
> >
> > Cheers,
> >
> > Marc
> >
>
> Anyone?
Hi Marc,
Make sure you're looking at the actual error messages, because they tell
you exactly where the problem is. Each message will feature a filename
and a line, which is where the element occurs that has a validation
error. For instance, the first error I saw was this:
./Desktops.xml:27: element listitem: validity error : Element listitem
content does not follow the DTD, expecting (calloutlist | glosslist |
bibliolist | 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 | task | anchor
| bridgehead | remark | highlights | abstract | authorblurb | epigraph |
indexterm | beginpage)+, got (CDATA)
Read the first line: The problem is in Desktop.xml, at line 27. Inside
the element <listitem> there's a problem. The DTD expects something
inside the following list, but instead it saw "CDATA", which means text
that's not part of an element.
Generally <listitem> contains a <para> like this:
<listitem>
<para>
Some item 1
</para>
</listitem>
So I'd bet you had something like this instead, which is wrong:
<listitem>
Some item 1
</listiem>
Let that be a guide, and see if you can fix the document using the error
messages, as above.
--
Paul W. Frields http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
http://redhat.com/ - - - - http://pfrields.fedorapeople.org/
irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20080519/5a23de2f/attachment.sig>
More information about the fedora-docs-list
mailing list