Re: xmllint and —
- From: Daniel Veillard <veillard redhat com>
- To: Daniel Carrera <dcarrera math toronto edu>
- Cc: GNOME Doc List <gnome-doc-list gnome org>
- Subject: Re: xmllint and —
- Date: Thu, 24 Jan 2002 13:49:26 -0500
On Thu, Jan 24, 2002 at 01:14:40AM -0500, Daniel Carrera wrote:
> Hello,
> I hope that this is not a stupid question:
>
> I've been using xmllint to check the XML of the document I'm working on.
> There's only one error left to figure out. xmllint doesn't seem to like
> —
>
> daniel]$ xmllint --noout gdict.xml
> gdict.xml:269: error: Entity 'mdash' not defined
> <guimenuitem>Manual</guimenuitem> — shows this manual.
Assuming you use DocBook you *really* should use
xmllint --valid --noout gdict.xml
it will then load the DTD. It doesn't do it by default, currently you
are just testing "well formedness" of the file, not that it conforms to
DocBook.
>
> It seems that xmllint is expecting an ENTITY tag for mdash (just like
> version). Interestingly, xmllint doesn't have any problem with < and
> >
If you use DocBook mdash is defined as part of the DTD so this problem
will disapear when run in validating mode.
The lt, gt, quot, and amp entities are predefined and don't need to be
declared in the DTD.
> I hope I'm not anoying anyone with stupid questions. Please remember that
> I'm new here :)
No problem, it's just an XML question.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]