Re: xmllint

From: Date: Fri, 07 Feb 2003 18:52:34 +0000
Subject: Re: xmllint
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351660@lists.php.net to get a copy of this message
> Friedhelm Betz wrote: > > and so on. But later on xlstproc doesn't complain about these already > > defined entities. > > xsltproc doesn't validate document, so duplicated IDs aren't detected I am not really sure and don't have your experience, but: <?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "./dtds/dbxml-4.1.2/docbookx.dtd"> <sect1 id="some-id"> <title>Some section</title> <para id="some-id">This is a link to <link linkend="some-id">some-id</link>.</para> </sect1> saved as test.xml and and invoking xsltproc throws errors: test.xml:7: validity error: ID some-id already defined <para id="some-id">This is a link to ^ Warning: multiple "IDs" for constraint linkend: some-id. I thought this is some sort of validation? My question was not about duplicate IDs but duplicate entity definitions like <!ENTITY reference.mhash.functions SYSTEM [...] <!ENTITY reference.mhash.functions SYSTEM pointing to the same file '/opt/phpdoc/en/reference/mhash/functions.xml' I am wondering about, why this double definitions exists and whats the reason for. Because this double definitions, I assume, let xmllint throw repeating errors of the same cause. Friedhelm

« previous php.doc (#969351660) next »