Re: dtds
Daniel Veillard <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
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/ [email protected] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/