diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2012-10-20 19:14:42 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2012-10-20 19:14:42 +0000 |
commit | 54c0bf5890b1017a48ab04caa951f530f189de58 (patch) | |
tree | 56d0179182262aaec7e9e3165f8f791b12bcd6f3 | |
parent | 31698a11f58d56959131ca8511548215a49f8675 (diff) | |
download | doc-54c0bf5890b1017a48ab04caa951f530f189de58.tar.gz doc-54c0bf5890b1017a48ab04caa951f530f189de58.zip |
- Add dtd to validate the mirrors database
Notes
Notes:
svn path=/projects/xml-tools/; revision=39783
-rw-r--r-- | share/xml/mirrors.dtd | 26 | ||||
-rw-r--r-- | share/xml/mirrors.xml | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/share/xml/mirrors.dtd b/share/xml/mirrors.dtd new file mode 100644 index 0000000000..e40058511b --- /dev/null +++ b/share/xml/mirrors.dtd @@ -0,0 +1,26 @@ +<!-- $FreeBSD$ --> + +<!ENTITY % cvs PUBLIC "-//FreeBSD//DTD FreeBSD CVS Keywords//EN" +"http://www.FreeBSD.org/XML/doc/share/xml/cvs.dtd"> +%cvs; + +<!ELEMENT mirrors (cvs:keyword, entry+)> + +<!ELEMENT entry (country, host+, email?)> +<!ELEMENT country (#PCDATA)> +<!ELEMENT host (name, url*)> +<!ELEMENT name (#PCDATA)> +<!ELEMENT url (#PCDATA)> +<!ELEMENT email (#PCDATA)> + +<!ATTLIST entry id ID #REQUIRED> +<!ATTLIST host type (cvsup|ftp|rsync|www) #REQUIRED> +<!ATTLIST url proto (ftp|ftpv6|http|httpv6|rsync|rsyncv6) #REQUIRED> +<!ATTLIST country + sortkey CDATA #REQUIRED + role CDATA #IMPLIED> + +<!ENTITY % iso8879.ent + PUBLIC "-//FreeBSD//ENTITIES ISO 8879:1986 Entity Set//EN//XML" + "http://www.FreeBSD.org/XML/www/share/xml/iso8879.ent"> +%iso8879.ent; diff --git a/share/xml/mirrors.xml b/share/xml/mirrors.xml index bcf2c76f61..2ad6264b24 100644 --- a/share/xml/mirrors.xml +++ b/share/xml/mirrors.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE mirrors PUBLIC "-//FreeBSD//DTD FreeBSD XML Database for Mirrors//EN" + "http://www.FreeBSD.org/XML/www/share/xml/mirrors.dtd"> <mirrors> <cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS"> $FreeBSD$ |