[Rpm-metadata] dtds

Daniel Veillard veillard at redhat.com
Wed Oct 29 14:59:21 UTC 2003


On Wed, Oct 29, 2003 at 12:48:56AM -0500, seth vidal wrote:
> Hi,
>  I wrote up some dtds for everyone to look over. This is the base dtd
> and the rpm namespace dtd.
> 
> This is the first time I've ever written a dtd and I'm not real clear if
> I did them correctly. I'm positive someone will show me the error of my
> ways (I'm basing this off of a few samples and an xml book I've been
> reading)

  that's basic but should work

> http://linux.duke.edu/~skvidal/metadata/base.dtd

<!ATTLIST location xml:base CDATA #REQUIRED

  hum shouldn't xml:base be #IMPLIED, I don't see it being mandatory

> http://linux.duke.edu/~skvidal/metadata/rpm-ns.dtd

  Hum, DTDs do not understand namespaces. So extensibility with DTDs will
be a pain anyway. I'm surprised to not see any ATTLIST allowing xmlns
kind of attributes (they are attributes at the DTD level).
  I'm not sure you can assemble your split DTD and make it usable easilly
especially if one start using non default namespace prefixes.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



More information about the Rpm-metadata mailing list