diff options
author | 2009-09-28 17:08:51 +0200 | |
---|---|---|
committer | 2009-09-28 17:08:51 +0200 | |
commit | df6da6d723868242a1f8de9ede8820b57f7d25be (patch) | |
tree | be5bfa0dc890a8fd72cb01fca5fa08548584a281 /schema | |
parent | s/maintainer/owner/g (diff) | |
download | repositories-xml-format-df6da6d723868242a1f8de9ede8820b57f7d25be.tar.gz repositories-xml-format-df6da6d723868242a1f8de9ede8820b57f7d25be.tar.bz2 repositories-xml-format-df6da6d723868242a1f8de9ede8820b57f7d25be.zip |
Move schemas to subfolder "schema"
Diffstat (limited to 'schema')
-rw-r--r-- | schema/layman-global.dtd | 26 | ||||
-rw-r--r-- | schema/layman-global.rng | 54 | ||||
-rw-r--r-- | schema/repositories.dtd | 51 | ||||
-rw-r--r-- | schema/repositories.rng | 94 |
4 files changed, 225 insertions, 0 deletions
diff --git a/schema/layman-global.dtd b/schema/layman-global.dtd new file mode 100644 index 0000000..a8d2309 --- /dev/null +++ b/schema/layman-global.dtd @@ -0,0 +1,26 @@ +<!-- + Gentoo Layman overlays.xml DTD 1.0 + + Copyright 1999-2009 Gentoo Foundation + Distributed under the terms of the GNU General Public License v2 or later +--> +<!ELEMENT overlays (overlay)*> +<!ATTLIST overlays + xmlns CDATA #FIXED ''> + +<!ELEMENT overlay (link?,description)> +<!ATTLIST overlay + xmlns CDATA #FIXED '' + contact CDATA #REQUIRED + name CDATA #REQUIRED + src CDATA #REQUIRED + status (official|unofficial) #IMPLIED + type (bzr|darcs|git|mercurial|rsync|svn|tar) #REQUIRED> + +<!ELEMENT link (#PCDATA)> +<!ATTLIST link + xmlns CDATA #FIXED ''> + +<!ELEMENT description (#PCDATA)> +<!ATTLIST description + xmlns CDATA #FIXED ''> diff --git a/schema/layman-global.rng b/schema/layman-global.rng new file mode 100644 index 0000000..131eb59 --- /dev/null +++ b/schema/layman-global.rng @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Gentoo Layman overlays.xml Relax NG schema 1.0 + + Copyright 1999-2009 Gentoo Foundation + Distributed under the terms of the GNU General Public License v2 or later +--> +<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" + datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> + <start> + <element name="overlays"> + <zeroOrMore> + <element name="overlay"> + <attribute name="contact"> + <text/> + </attribute> + <attribute name="name"> + <text/> + </attribute> + <attribute name="src"> + <data type="anyURI"/> + </attribute> + <optional> + <attribute name="status"> + <choice> + <value>official</value> + <value>unofficial</value> + </choice> + </attribute> + </optional> + <attribute name="type"> + <choice> + <value>bzr</value> + <value>darcs</value> + <value>git</value> + <value>mercurial</value> + <value>rsync</value> + <value>svn</value> + <value>tar</value> + </choice> + </attribute> + <optional> + <element name="link"> + <data type="anyURI"/> + </element> + </optional> + <element name="description"> + <text/> + </element> + </element> + </zeroOrMore> + </element> + </start> +</grammar> diff --git a/schema/repositories.dtd b/schema/repositories.dtd new file mode 100644 index 0000000..d98fad4 --- /dev/null +++ b/schema/repositories.dtd @@ -0,0 +1,51 @@ +<!-- + Gentoo repositories.xml DTD 1.0 + + Modelling by + Robert Buchholz <rbu@gentoo.org> + Sebastian Pipping <sebastian@pipping.org> + + Copyright 1999-2009 Gentoo Foundation + Distributed under the terms of the GNU General Public License v2 or later +--> +<!ELEMENT repositories (repo)*> +<!ATTLIST repositories + xmlns CDATA #FIXED '' + version CDATA #FIXED '1.0'> + +<!ELEMENT repo (description,(homepage)?,owner,(source)+,(feed)*)> +<!ATTLIST repo + xmlns CDATA #FIXED '' + name CDATA #REQUIRED + quality (core|stable|testing|experimental|graveyard) #IMPLIED + status (official|unofficial) #IMPLIED> + +<!ELEMENT description (#PCDATA)> +<!ATTLIST description + xmlns CDATA #FIXED ''> + +<!ELEMENT homepage (#PCDATA)> +<!ATTLIST homepage + xmlns CDATA #FIXED ''> + +<!ELEMENT owner (email,(name)?)> +<!ATTLIST owner + xmlns CDATA #FIXED '' + type (project|person) #IMPLIED> + +<!ELEMENT source (#PCDATA)> +<!ATTLIST source + xmlns CDATA #FIXED '' + type (bzr|cvs|darcs|git|mercurial|rsync|svn|tar) #REQUIRED> + +<!ELEMENT feed (#PCDATA)> +<!ATTLIST feed + xmlns CDATA #FIXED ''> + +<!ELEMENT email (#PCDATA)> +<!ATTLIST email + xmlns CDATA #FIXED ''> + +<!ELEMENT name (#PCDATA)> +<!ATTLIST name + xmlns CDATA #FIXED ''> diff --git a/schema/repositories.rng b/schema/repositories.rng new file mode 100644 index 0000000..a48cd29 --- /dev/null +++ b/schema/repositories.rng @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Gentoo repositories.xml Relax NG schema 1.0 + + Modelling by + Robert Buchholz <rbu@gentoo.org> + Sebastian Pipping <sebastian@pipping.org> + + Copyright 1999-2009 Gentoo Foundation + Distributed under the terms of the GNU General Public License v2 or later +--> +<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> + <start> + <element name="repositories"> + <attribute name="version"> + <value>1.0</value> + </attribute> + <zeroOrMore> + <element name="repo"> + <attribute name="name"> + <text/> + </attribute> + <optional> + <attribute name="quality"> + <choice> + <value>core</value> + <value>stable</value> + <value>testing</value> + <value>experimental</value> + <value>graveyard</value> + </choice> + </attribute> + </optional> + <optional> + <attribute name="status"> + <choice> + <value>official</value> + <value>unofficial</value> + </choice> + </attribute> + </optional> + <element name="description"> + <text/> + </element> + <optional> + <element name="homepage"> + <data type="anyURI"/> + </element> + </optional> + <element name="owner"> + <optional> + <attribute name="type"> + <choice> + <value>project</value> + <value>person</value> + </choice> + </attribute> + </optional> + <element name="email"> + <data type="anyURI"/> + </element> + <optional> + <element name="name"> + <text/> + </element> + </optional> + </element> + <oneOrMore> + <element name="source"> + <attribute name="type"> + <choice> + <value>bzr</value> + <value>cvs</value> + <value>darcs</value> + <value>git</value> + <value>mercurial</value> + <value>rsync</value> + <value>svn</value> + <value>tar</value> + </choice> + </attribute> + <data type="anyURI"/> + </element> + </oneOrMore> + <zeroOrMore> + <element name="feed"> + <data type="anyURI"/> + </element> + </zeroOrMore> + </element> + </zeroOrMore> + </element> + </start> +</grammar> |