Re: dtd and validation
Daniel Veillard <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jan 16, 2005 at 09:00:59PM +0100, Féliciano Matias wrote:
> I am trying to learn XML (It's very _very_ very (!) hard...).
Meuh non !
> I use this xml file :
> http://linux.duke.edu/projects/metadata/samples/repomd-sample.xml
> With this dtd :
> http://linux.duke.edu/projects/metadata/dtd/repomd.dtd
>
>
> Add this to repond-samble.xml :
> <!DOCTYPE metadata SYSTEM "http://linux.duke.edu/projects/metadata/dtd/repomd.dtd">
>
> Here is the result of "xmllint --valid repomd-sample.xml" :
rather than modifying repond-samble.xml use
xmllint --dtdvalid http://linux.duke.edu/projects/metadata/dtd/repomd.dtd http://linux.duke.edu/projects/metadata/samples/repomd-sample.xml
[...]
> Seems to me that the dtd does not correspond to the xml file.
true it's a bit outdated,
> If the dtd is useless, then it should be removed.
nahh, it just need to be updated to reflect the current state
That should not be too hard, sounds even a good exercise in improving
your XML knowledge (and next one is to write a Relax-NG schemas for it [1]) ;-)
Daniel
[1] http://www.oasis-open.org/committees/relax-ng/tutorial-20011203.html
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
[email protected] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/