From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C0FA5138335 for ; Tue, 17 Dec 2019 19:07:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9EAAAE086E; Tue, 17 Dec 2019 19:07:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D923E0871 for ; Tue, 17 Dec 2019 19:07:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CAF8934D5D7 for ; Tue, 17 Dec 2019 19:07:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D46288C6 for ; Tue, 17 Dec 2019 19:07:34 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1576608728.f2d97490637ae0ae50dfe6165fd1ab53d5b993b4.ulm@gentoo> Subject: [gentoo-commits] proj/nxml-gentoo-schemas:master commit in: / X-VCS-Repository: proj/nxml-gentoo-schemas X-VCS-Files: Makefile mirrors.rnc schemas.xml X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: f2d97490637ae0ae50dfe6165fd1ab53d5b993b4 X-VCS-Branch: master Date: Tue, 17 Dec 2019 19:07:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c2bca8c3-7758-4882-84b7-585eb1087bde X-Archives-Hash: d4800255cb553b99a4d1fd0c5a3beacc commit: f2d97490637ae0ae50dfe6165fd1ab53d5b993b4 Author: Ulrich Müller gentoo org> AuthorDate: Tue Dec 17 18:52:08 2019 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Dec 17 18:52:08 2019 +0000 URL: https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=f2d97490 mirrors.rnc: New file. mirrors.dtd was missing from the list of DTDs. Signed-off-by: Ulrich Müller gentoo.org> Makefile | 2 +- mirrors.rnc | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ schemas.xml | 1 + 3 files changed, 81 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9a40f59..915719d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DTDS = book.dtd devbook.dtd glsa.dtd guide.dtd metadata.dtd \ +DTDS = book.dtd devbook.dtd glsa.dtd guide.dtd metadata.dtd mirrors.dtd \ projects.dtd repositories.dtd DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS)) diff --git a/mirrors.rnc b/mirrors.rnc new file mode 100644 index 0000000..e516d0c --- /dev/null +++ b/mirrors.rnc @@ -0,0 +1,79 @@ +# $Header: /var/cvsroot/gentoo/xml/htdocs/dtd/mirrors.dtd,v 1.3 2009/12/03 09:43:39 robbat2 Exp $ + +# This file is used for keeping the new mirrors.xml file + +# element: mirrors +# description: A set of mirrorgroups followed by a list of countries with their code +# example: +# +# ... +# +# ... +# +# Canada +# ... +# +# + +namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" + +mirrors = element mirrors { attlist.mirrors, mirrorgroup*, countries } +attlist.mirrors &= empty +# element: mirrorgroup +# description: Group mirrors by region and country. +# The country code must exist in //countries/country +# example: +# +# ... +# +# ... +# +# OSU Open Source Lab +# http://gentoo.osuosl.org/ +# ftp://gentoo.osuosl.org/ +# +mirror = element mirror { attlist.mirror, name, uri+ } +attlist.mirror &= + attribute city { text }?, + attribute coordinates { text }?, + attribute gentoo-bug { text }? +# element: name +# description: Name of the mirror +# note: Do not include a country and protocol pair, "(USA/http)" as they will +# be built by the XSL. +# example: OSU Open Source Lab +name = element name { attlist.name, text } +attlist.name &= empty +# element: uri +# description: A Uniform Resource Locator for a given mirror +# example: http://gentoo.osuosl.org/ +uri = element uri { attlist.uri, text } +attlist.uri &= + [ a:defaultValue = "y" ] attribute ipv4 { "Y" | "y" | "N" | "n" }?, + [ a:defaultValue = "n" ] attribute ipv6 { "Y" | "y" | "N" | "n" }?, + [ a:defaultValue = "n" ] attribute partial { "Y" | "y" | "N" | "n" }?, + [ a:defaultValue = "http" ] + attribute protocol { "http" | "ftp" | "rsync" }? +# element: countries +# description: A list of countries with their code and name +# example: +# Canada +# +countries = element countries { attlist.countries, country* } +attlist.countries &= empty +# element: country +# description: A country with its code +# example: Canada +country = element country { attlist.country, text } +attlist.country &= attribute code { xsd:ID } +start = mirrors diff --git a/schemas.xml b/schemas.xml index 7db46ae..590e4ce 100644 --- a/schemas.xml +++ b/schemas.xml @@ -7,6 +7,7 @@ +