Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 19:14:43 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-projects@freebsd.org
Subject:   svn commit: r39783 - projects/xml-tools/share/xml
Message-ID:  <201210201914.q9KJEhi9091298@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Sat Oct 20 19:14:42 2012
New Revision: 39783
URL: http://svn.freebsd.org/changeset/doc/39783

Log:
  - Add dtd to validate the mirrors database

Added:
  projects/xml-tools/share/xml/mirrors.dtd   (contents, props changed)
Modified:
  projects/xml-tools/share/xml/mirrors.xml

Added: projects/xml-tools/share/xml/mirrors.dtd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ projects/xml-tools/share/xml/mirrors.dtd	Sat Oct 20 19:14:42 2012	(r39783)
@@ -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;

Modified: projects/xml-tools/share/xml/mirrors.xml
==============================================================================
--- projects/xml-tools/share/xml/mirrors.xml	Sat Oct 20 15:04:06 2012	(r39782)
+++ projects/xml-tools/share/xml/mirrors.xml	Sat Oct 20 19:14:42 2012	(r39783)
@@ -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$



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210201914.q9KJEhi9091298>