aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/xml/mirrors.dtd26
-rw-r--r--share/xml/mirrors.xml2
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$