[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2024-02-08 Thread Ulrich Müller
commit: 56b0eacf4052e7514965690e96ead29f30c8e21a
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Feb  8 10:49:37 2024 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Feb  8 10:49:37 2024 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=56b0eacf

devbook.rnc: Update from devmanual

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 6 --
 devmanual   | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 158f372..22f7c09 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the MIT license
 # or the CC-BY-SA-4.0 license (dual-licensed)
 
@@ -7,7 +7,7 @@
 
 block.class = p | pre | codesample | note | important | warning | todo
 | figure | table | ul | ol | dl
-attrib.class = text | b | c | e
+attrib.class = text | b | c | e | sub | sup
 inline.class = attrib.class | d | uri
 
 attrib = attrib.class*
@@ -112,6 +112,8 @@ dd = element dd { all }
 b = element b { inline }
 c = element c { inline }
 e = element e { inline }
+sub = element sub { inline }
+sup = element sup { inline }
 d = element d { empty }
 
 uri = element uri {

diff --git a/devmanual b/devmanual
index 4ad0fdf..bd47497 16
--- a/devmanual
+++ b/devmanual
@@ -1 +1 @@
-Subproject commit 4ad0fdff94a8e51fa2be94eff28357d962c8063a
+Subproject commit bd474970728035c6286f1071162efefd6f8d63e9



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2023-10-22 Thread Ulrich Müller
commit: cc63c4cc8533f92cdd6bf55ddb38f751777b0b2f
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sun Oct 22 21:02:03 2023 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sun Oct 22 21:02:03 2023 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=cc63c4cc

devbook.rnc: Update from devmanual

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 14 +++---
 devmanual   |  2 +-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 9fe44b8..158f372 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the MIT license
 # or the CC-BY-SA-4.0 license (dual-licensed)
 
@@ -93,8 +93,16 @@ ti = element ti {
   all
 }
 
-ul = element ul { attribute class { "list-group" }?, li+ }
-ol = element ol { li+ }
+ul = element ul {
+  attribute class { "list-group" }?,
+  li+
+}
+
+ol = element ol {
+  attribute type { "1" | "A" | "a" | "I" | "i" }?,
+  li+
+}
+
 li = element li { all }
 
 dl = element dl { (dt | dd)+ }

diff --git a/devmanual b/devmanual
index f73fcfb..4ad0fdf 16
--- a/devmanual
+++ b/devmanual
@@ -1 +1 @@
-Subproject commit f73fcfb9352f815d44a0198516ac759caa6e09ec
+Subproject commit 4ad0fdff94a8e51fa2be94eff28357d962c8063a



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2023-10-07 Thread Ulrich Müller
commit: 6f47949f1b7d28044c384bbeedb499fd2d5837af
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Oct  7 14:09:50 2023 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Oct  7 14:09:50 2023 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=6f47949f

LICENCE: Add a copyright notice

The text mentions "the above copyright notice", therefore add one.

Signed-off-by: Ulrich Müller  gentoo.org>

 LICENCE | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/LICENCE b/LICENCE
index 1bf9852..0a21fdc 100644
--- a/LICENCE
+++ b/LICENCE
@@ -1,3 +1,6 @@
+Copyright 2007-2011 Diego Elio Pettenò
+Copyright 2015-2023 Ulrich Müller
+
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2023-09-14 Thread Ulrich Müller
commit: e0a552eee69b3f7038b5362b843b3b2a476a5022
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Sep 14 15:54:47 2023 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Sep 14 15:54:47 2023 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=e0a552ee

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 dtd  | 2 +-
 metadata.rnc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dtd b/dtd
index bb286db..73759fb 16
--- a/dtd
+++ b/dtd
@@ -1 +1 @@
-Subproject commit bb286dbef6af03bd7d063cf693f9860419796c3d
+Subproject commit 73759fb943467e059035e1e271c50893a43f70e9

diff --git a/metadata.rnc b/metadata.rnc
index 69952e1..28a00eb 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -88,6 +88,7 @@ remote-id = element remote-id { attlist.remote-id, text }
 attlist.remote-id &=
   attribute type {
 "bitbucket"
+| "codeberg"
 | "cpan"
 | "cpan-module"
 | "cpe"



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2023-02-27 Thread Ulrich Müller
commit: 33a7da00469564566b2388f67381f6d1a93c45be
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Feb 27 18:00:26 2023 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Feb 27 18:00:26 2023 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=33a7da00

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 dtd  | 2 +-
 metadata.rnc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dtd b/dtd
index 021212e..bb286db 16
--- a/dtd
+++ b/dtd
@@ -1 +1 @@
-Subproject commit 021212eca36f8e22d110a8d77bbb96bdd908f499
+Subproject commit bb286dbef6af03bd7d063cf693f9860419796c3d

diff --git a/metadata.rnc b/metadata.rnc
index 92058dc..69952e1 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -101,6 +101,7 @@ attlist.remote-id &=
 | "google-code"
 | "hackage"
 | "heptapod"
+| "kde-invent"
 | "launchpad"
 | "osdn"
 | "pear"



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-11-03 Thread Ulrich Müller
commit: c70ff788a6c0b7acf1025310e2c25a1c7e3ce3f5
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Nov  3 17:47:58 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Nov  3 17:47:58 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=c70ff788

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 dtd  | 2 +-
 metadata.rnc | 6 ++
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dtd b/dtd
index 87222b4..021212e 16
--- a/dtd
+++ b/dtd
@@ -1 +1 @@
-Subproject commit 87222b4de8d12028cb8a72b1f80a318a749c239d
+Subproject commit 021212eca36f8e22d110a8d77bbb96bdd908f499

diff --git a/metadata.rnc b/metadata.rnc
index 7ab3e42..92058dc 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -4,8 +4,7 @@ namespace a = 
"http://relaxng.org/ns/compatibility/annotations/1.0;
 
 catmetadata =
   element catmetadata { attlist.catmetadata, longdescription* }
-attlist.catmetadata &=
-  [ a:defaultValue = "" ] attribute pkgname { text }?
+attlist.catmetadata &= empty
 # Metadata for a package
 pkgmetadata =
   element pkgmetadata {
@@ -17,8 +16,7 @@ pkgmetadata =
  | use
  | upstream)*
   }
-attlist.pkgmetadata &=
-  [ a:defaultValue = "" ] attribute pkgname { text }?
+attlist.pkgmetadata &= empty
 #  One tag for each maintainer of a package, multiple allowed
 maintainer =
   element maintainer {



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-10-01 Thread Ulrich Müller
commit: d9c60811809c9fb8d3d714f16191ace208f9cc9a
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Oct  1 09:38:18 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Oct  1 09:38:18 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=d9c60811

Makefile: Build from sources in submodules

Instead of fetching files over the network.

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitignore |  2 --
 Makefile   | 21 ++---
 2 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/.gitignore b/.gitignore
index cf60873..b5624b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-*.dtd
-*.stamp
 *.tar.xz

diff --git a/Makefile b/Makefile
index 57ca512..a3a384a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
-DTDS = glsa.dtd metadata.dtd mirrors.dtd projects.dtd \
-   repositories.dtd userinfo.dtd
-
-RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) devbook.rnc
+RNCS = devbook.rnc glsa.rnc metadata.rnc mirrors.rnc projects.rnc \
+   repositories.rnc userinfo.rnc
 
 ifneq ($(PV),)
 P=nxml-gentoo-schemas-$(PV)
@@ -18,17 +16,10 @@ dist: Makefile LICENCE schemas.xml $(RNCS)
tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^
 
 clean:
-   rm -f *.dtd *.stamp *.tar.xz
+   rm -f *.tar.xz
 
-%.rnc: %.dtd
+%.rnc: dtd/%.dtd
trang -I dtd -O rnc $< $@
 
-$(DTDS):
-   wget -N --no-verbose https://www.gentoo.org/dtd/$@
-
-devbook.rnc: devbook.stamp
-
-devbook.stamp:
-   wget -N --no-verbose \
- https://gitweb.gentoo.org/proj/devmanual.git/plain/devbook.rnc
-   touch -r devbook.rnc $@
+devbook.rnc: devmanual/devbook.rnc
+   cp $< $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-10-01 Thread Ulrich Müller
commit: eb8e27333c076a55d0a5633a53efcde4e79d9984
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Oct  1 09:36:26 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Oct  1 09:36:26 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=eb8e2733

Add dtd and devmanual repos as submodules

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitmodules | 6 ++
 devmanual   | 1 +
 dtd | 1 +
 3 files changed, 8 insertions(+)

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000..a82473d
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,6 @@
+[submodule "dtd"]
+   path = dtd
+   url = https://anongit.gentoo.org/git/data/dtd.git
+[submodule "devmanual"]
+   path = devmanual
+   url = https://anongit.gentoo.org/git/proj/devmanual.git

diff --git a/devmanual b/devmanual
new file mode 16
index 000..f73fcfb
--- /dev/null
+++ b/devmanual
@@ -0,0 +1 @@
+Subproject commit f73fcfb9352f815d44a0198516ac759caa6e09ec

diff --git a/dtd b/dtd
new file mode 16
index 000..87222b4
--- /dev/null
+++ b/dtd
@@ -0,0 +1 @@
+Subproject commit 87222b4de8d12028cb8a72b1f80a318a749c239d



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-10-01 Thread Ulrich Müller
commit: 7f33c3f2ea82600ad53498340f804520871876f0
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Oct  1 09:38:18 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Oct  1 09:38:18 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=7f33c3f2

Makefile: Build from sources in submodules

Instead of fetching files over the network.

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitignore |  2 --
 Makefile   | 15 ---
 2 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/.gitignore b/.gitignore
index cf60873..b5624b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-*.dtd
-*.stamp
 *.tar.xz

diff --git a/Makefile b/Makefile
index 57ca512..2a37157 100644
--- a/Makefile
+++ b/Makefile
@@ -18,17 +18,10 @@ dist: Makefile LICENCE schemas.xml $(RNCS)
tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^
 
 clean:
-   rm -f *.dtd *.stamp *.tar.xz
+   rm -f *.tar.xz
 
-%.rnc: %.dtd
+%.rnc: dtd/%.dtd
trang -I dtd -O rnc $< $@
 
-$(DTDS):
-   wget -N --no-verbose https://www.gentoo.org/dtd/$@
-
-devbook.rnc: devbook.stamp
-
-devbook.stamp:
-   wget -N --no-verbose \
- https://gitweb.gentoo.org/proj/devmanual.git/plain/devbook.rnc
-   touch -r devbook.rnc $@
+devbook.rnc: devmanual/devbook.rnc
+   cp $< $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-09-16 Thread Ulrich Müller
commit: 59ba7ce1c7c5fda00453a95d599dee3b346094a6
Author: Ulrich Müller  gentoo  org>
AuthorDate: Fri Sep 16 07:14:26 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Fri Sep 16 07:14:26 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=59ba7ce1

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 metadata.rnc | 4 
 1 file changed, 4 insertions(+)

diff --git a/metadata.rnc b/metadata.rnc
index a8a0810..7ab3e42 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -95,9 +95,11 @@ attlist.remote-id &=
 | "cpe"
 | "cran"
 | "ctan"
+| "freedesktop-gitlab"
 | "gentoo"
 | "github"
 | "gitlab"
+| "gnome-gitlab"
 | "google-code"
 | "hackage"
 | "heptapod"
@@ -107,6 +109,8 @@ attlist.remote-id &=
 | "pecl"
 | "pypi"
 | "rubygems"
+| "savannah"
+| "savannah-nongnu"
 | "sourceforge"
 | "sourcehut"
 | "vim"



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-07-29 Thread Ulrich Müller
commit: c683fef315b2a153c2d9da9f111f5bcf42d8bb39
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Jul 30 05:30:59 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Jul 30 05:30:59 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=c683fef3

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 metadata.rnc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/metadata.rnc b/metadata.rnc
index f815278..a8a0810 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -99,6 +99,7 @@ attlist.remote-id &=
 | "github"
 | "gitlab"
 | "google-code"
+| "hackage"
 | "heptapod"
 | "launchpad"
 | "osdn"
@@ -107,6 +108,7 @@ attlist.remote-id &=
 | "pypi"
 | "rubygems"
 | "sourceforge"
+| "sourcehut"
 | "vim"
   }
 # category/package information for cross-linking in descriptions



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-06-19 Thread Ulrich Müller
commit: 2c9cfc21ab438d5854dc20392f895ef788c94ea5
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sun Jun 19 15:45:43 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sun Jun 19 15:45:43 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=2c9cfc21

devbook.rnc: Update from devmanual

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devbook.rnc b/devbook.rnc
index 4ca931d..9fe44b8 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -107,7 +107,7 @@ e = element e { inline }
 d = element d { empty }
 
 uri = element uri {
-  # uri can have either an URI in the body text or a link attribute
+  # uri can have either a URI in the body text or a link attribute
   xsd:anyURI
   | (attribute link { text }, inline)
 }



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-05-26 Thread Ulrich Müller
commit: 4233c4e2b68262aa5adb56809bc5119b1ba8a8c6
Author: Ulrich Müller  gentoo  org>
AuthorDate: Wed May 25 18:42:20 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed May 25 18:42:20 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=4233c4e2

schemas.xml: Add copyright and license notice

Signed-off-by: Ulrich Müller  gentoo.org>

 schemas.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/schemas.xml b/schemas.xml
index f93bcbb..592459e 100644
--- a/schemas.xml
+++ b/schemas.xml
@@ -1,4 +1,8 @@
 
+
 http://thaiopensource.com/ns/locating-rules/1.0;>
   
   



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-05-26 Thread Ulrich Müller
commit: f84e89097180151ab71875c1ccdc7904d4ff3e6e
Author: Ulrich Müller  gentoo  org>
AuthorDate: Wed May 25 18:41:13 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed May 25 18:41:13 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=f84e8909

glsa.rnc, metadata.rnc, repositories.rnc: Update from DTDs

Signed-off-by: Ulrich Müller  gentoo.org>

 glsa.rnc | 44 +---
 metadata.rnc |  1 -
 repositories.rnc |  4 +---
 3 files changed, 22 insertions(+), 27 deletions(-)

diff --git a/glsa.rnc b/glsa.rnc
index 2711a6a..b2fbdf4 100644
--- a/glsa.rnc
+++ b/glsa.rnc
@@ -1,5 +1,3 @@
-# $Header: /var/cvsroot/gentoo/xml/htdocs/dtd/glsa.dtd,v 1.17 2008/04/04 
17:04:39 neysx Exp $
-
 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
 
 glsa =
@@ -24,8 +22,8 @@ glsa =
   }
 attlist.glsa &= attribute id { text }
 # Element:  title
-# Description:  Provides a 4-5 word description about the advisory 
-# Example:  Buffer overflow vulnerability found in 
openssl-0.9.5 
+# Description:  Provides a 4-5 word description about the advisory
+# Example:  Buffer overflow vulnerability found in 
openssl-0.9.5
 title = element title { attlist.title, text }
 attlist.title &= empty
 # Element:  synopsis
@@ -41,11 +39,11 @@ attlist.synopsis &= empty
 # Description:  Defines what type of security announcement this is.
 # 
 #   Valid types are:
-#   - ebuild A Portage-provided ebuild has a security 
+#   - ebuild A Portage-provided ebuild has a security
 #issue
 #   - informational  This GLSA is purely informational, no Gentoo
 #system is affected
-#   - infrastructure The security issue involves the Gentoo 
+#   - infrastructure The security issue involves the Gentoo
 #infrastructure
 # 
 #   The text contains one keyword that defines the issue.
@@ -90,25 +88,25 @@ attlist.access &= empty
 # 
 #   If product@type = 'ebuild', the child elements are 'package'
 #   If product@type = 'portage', the child elements are 'package'
-#   If product@type = 'infrastructure', the child elements are 
+#   If product@type = 'infrastructure', the child elements are
 #   'service'
 #
 affected = element affected { attlist.affected, (package* | service*) }
 attlist.affected &= empty
 # Element:  package
-# Description:  Provide all necessary information regarded the affected 
-#   packages. It also contains information about the affected 
+# Description:  Provide all necessary information regarded the affected
+#   packages. It also contains information about the affected
 #   architectures, if automatic updates can be done and the update
 # 
 #   The "update" attribute contains the path to the non-vulnerable
 #   version of the package
 # 
-#   The "auto" attribute contains either "yes" or "no" and tells 
-#   Portage that the package can be updated automatically (to be 
+#   The "auto" attribute contains either "yes" or "no" and tells
+#   Portage that the package can be updated automatically (to be
 #   implemented) without further user interaction
 # 
 #   The "arch" attribute contains either the architecture (as used
-#   by ACCEPT_KEYWORDS) or the "*" value (in case all 
+#   by ACCEPT_KEYWORDS) or the "*" value (in case all
 #   architectures are affected)
 # 
 # Occurrence:   The package element can occur 0, 1 or more times
@@ -131,11 +129,11 @@ attlist.vulnerable &=
   },
   [ a:defaultValue = "*" ] attribute slot { text }?
 # Element:  unaffected
-# Description:  Version of the fixed (or unaffected) package. In case the 
+# Description:  Version of the fixed (or unaffected) package. In case the
 #   package is superseded by another package, you need to
 #   define that package using the "name" attribute.
 # 
-#   The r* range information is revision-specific. For instance, 
+#   The r* range information is revision-specific. For instance,
 #   rge foo-1.2.3-r4  ==  >=foo-1.2.3-r4 && "s in which the text 
+#   The background element contains only ""s in which the text
 #   is placed
 #
 background = element background { attlist.background, (p | ul | ol)* }
@@ -208,18 +206,18 @@ description =
   element description { attlist.description, (p | ul | ol | code)* }
 attlist.description &= empty
 # Element:  impact
-# Description:  Provides information about the impact that the security issue 
+# Description:  Provides information about the impact that the security issue
 #   can have
 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-05-24 Thread Ulrich Müller
commit: a3f459e2cd8ff001145f7084d664691d51a92fe8
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue May 24 17:50:30 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue May 24 17:50:30 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=a3f459e2

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 metadata.rnc | 13 +
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/metadata.rnc b/metadata.rnc
index 3705f90..8deae47 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -95,8 +95,6 @@ attlist.remote-id &=
 | "cpe"
 | "cran"
 | "ctan"
-| "freecode"
-| "freshmeat"
 | "gentoo"
 | "github"
 | "gitlab"
@@ -104,13 +102,12 @@ attlist.remote-id &=
 | "google-code"
 | "heptapod"
 | "launchpad"
+| "osdn"
 | "pear"
 | "pecl"
 | "pypi"
-| "rubyforge"
 | "rubygems"
 | "sourceforge"
-| "sourceforge-jp"
 | "vim"
   }
 # category/package information for cross-linking in descriptions
@@ -122,7 +119,7 @@ attlist.cat &= empty
 # Common attributes
 
 # the lang attribute, specifies the language of this tag in the
-# form of a ISO 639-1 language code. This is only useful for
+# form of an IETF (BCP 47) language tag. This is only useful for
 # descriptions of various kinds. If a tag with this attribute is
 # included there must be a description in the default language "en"
 attlist.description &=
@@ -131,14 +128,14 @@ attlist.longdescription &=
   [ a:defaultValue = "en" ] attribute lang { text }?
 attlist.slots &= [ a:defaultValue = "en" ] attribute lang { text }?
 attlist.use &= [ a:defaultValue = "en" ] attribute lang { text }?
-# The restrict attribute, this attribute specifies restrictions on 
-# the applicability of tags on versions. The format of this attribute is 
+# The restrict attribute, this attribute specifies restrictions on
+# the applicability of tags on versions. The format of this attribute is
 # equal to the format of DEPEND lines in ebuilds. Only package
 # dependency specifications conforming to EAPI=0 syntax are allowed.
 # The dependency specification may only contain references to the
 # package itself and no other package.
 # 
-# For required tags, there must be either an unrestricted version, or a 
+# For required tags, there must be either an unrestricted version, or a
 # version that is default restricted.
 attlist.maintainer &= attribute restrict { text }?
 attlist.longdescription &= attribute restrict { text }?



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-04-28 Thread Ulrich Müller
commit: 1551fec5527f92188382578129d8341fd0e48342
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Apr 28 22:33:31 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Apr 28 22:33:31 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=1551fec5

LICENCE: Change to MIT

Acknowledged by Diego per e-mail on Thu, 28 Apr 2022 10:11:32 +0100,
Message-Id <9fb51532-c237-43e5-a5c8-732567c8f56a  www.fastmail.com>:
"I'm happy to have any of my "historical permission notice" code in
nxml-gentoo-schemas relicensed under MIT or 0BSD as you find more
convenient."

Acked-by: Diego Elio Pettenò  flameeyes.com>
Signed-off-by: Ulrich Müller  gentoo.org>

 LICENCE | 27 ++-
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/LICENCE b/LICENCE
index ae0a02c..1bf9852 100644
--- a/LICENCE
+++ b/LICENCE
@@ -1,9 +1,18 @@
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
-provided that the above copyright notice appears in all copies and
-that both the copyright notice and this permission notice appear in
-supporting documentation, and that the same name not be used in
-advertising or publicity pertaining to distribution of the software
-without specific, written prior permission. We make no representations
-about the suitability this software for any purpose. It is provided
-"as is" without express or implied warranty.
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-04-28 Thread Ulrich Müller
commit: 313d6eec66edc2d6e93acb08f0ff6ee239eebd30
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Apr 28 22:33:31 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Apr 28 22:33:31 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=313d6eec

LICENSE: Change to MIT

Acknowledged by Diego per e-mail on Thu, 28 Apr 2022 10:11:32 +0100,
Message-Id <9fb51532-c237-43e5-a5c8-732567c8f56a  www.fastmail.com>:
"I'm happy to have any of my "historical permission notice" code in
nxml-gentoo-schemas relicensed under MIT or 0BSD as you find more
convenient."

Acked-by: Diego Elio Pettenò  flameeyes.com>
Signed-off-by: Ulrich Müller  gentoo.org>

 LICENCE | 27 ++-
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/LICENCE b/LICENCE
index ae0a02c..1bf9852 100644
--- a/LICENCE
+++ b/LICENCE
@@ -1,9 +1,18 @@
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
-provided that the above copyright notice appears in all copies and
-that both the copyright notice and this permission notice appear in
-supporting documentation, and that the same name not be used in
-advertising or publicity pertaining to distribution of the software
-without specific, written prior permission. We make no representations
-about the suitability this software for any purpose. It is provided
-"as is" without express or implied warranty.
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-01-25 Thread Ulrich Müller
commit: 140f12f64dd4da0ff21495bbfa350b2d6b51
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Jan 25 00:29:57 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Jan 25 00:29:57 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=140f12f6

devbook.rnc: Update from devmanual

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 213 +++-
 1 file changed, 97 insertions(+), 116 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 2d21a4a..4ca931d 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -1,132 +1,113 @@
-# Copyright 2019-2021 Gentoo Authors
-
-# Distributed under the terms of the MIT/X11 license
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the MIT license
 # or the CC-BY-SA-4.0 license (dual-licensed)
 
-# Document Type Definition for the Gentoo Devmanual
-
+# RELAX NG schema for the Gentoo Devmanual
 # Based on common.dtd from GuideXML
 
-namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
-
-block.class =
-  p
-  | pre
-  | codesample
-  | note
-  | important
-  | warning
-  | todo
-  | figure
-  | table
-  | ul
-  | ol
-  | dl
-attrib.class = b | c | e
+block.class = p | pre | codesample | note | important | warning | todo
+| figure | table | ul | ol | dl
+attrib.class = text | b | c | e
 inline.class = attrib.class | d | uri
-all.class = block.class | inline.class
-guide = element guide { guide.attlist, chapter, \include* }
-guide.attlist &=
-  attribute root { "true" }?,
-  attribute self { text }?
-\include = element include { include.attlist, empty }
-include.attlist &= attribute href { text }
-chapter =
-  element chapter { chapter.attlist, title, (body | section), section* }
-chapter.attlist &= empty
-section =
-  element section {
-section.attlist, title, (body | subsection), subsection*
-  }
-section.attlist &= empty
+
+attrib = attrib.class*
+inline = inline.class*
+all = (block.class | inline.class)*
+
+start = guide
+
+guide = element guide {
+  (attribute root { "true" } | attribute self { text }),
+  chapter,
+  \include*
+}
+
+\include = element include { attribute href { text } }
+
+chapter = element chapter { title, (body | section), section* }
+section = element section { title, (body | subsection), subsection* }
 subsection =
-  element subsection {
-subsection.attlist, title, (body | subsubsection), subsubsection*
-  }
-subsection.attlist &= empty
-subsubsection =
-  element subsubsection { subsubsection.attlist, title, body }
-subsubsection.attlist &= empty
+  element subsection { title, (body | subsubsection), subsubsection* }
+subsubsection = element subsubsection { title, body }
+
 # Title texts are used as anchors, so allow only text attributes
-title = element title { title.attlist, (text | attrib.class)* }
-title.attlist &= empty
-body =
-  element body { body.attlist, (authors | contentsTree | block.class)+ }
-body.attlist &= empty
-authors = element authors { authors.attlist, (author+ | authorlist+) }
-authors.attlist &= empty
-author = element author { author.attlist, (text | inline.class)* }
-author.attlist &=
+title = element title { attrib }
+
+body = element body { (authors | contentsTree | block.class)+ }
+
+authors = element authors { author+ | authorlist+ }
+
+author = element author {
   attribute name { text },
-  attribute email { text }?
-authorlist = element authorlist { authorlist.attlist, empty }
-authorlist.attlist &=
+  attribute email { text }?,
+  inline
+}
+
+authorlist = element authorlist {
   attribute title { text },
   attribute href { text }
-contentsTree = element contentsTree { contentsTree.attlist, empty }
-contentsTree.attlist &=
-  attribute maxdepth { text }?,
+}
+
+contentsTree = element contentsTree {
+  attribute maxdepth { xsd:unsignedInt }?,
   attribute root { text }?,
   attribute extraction { text }?
-p = element p { p.attlist, (text | inline.class)* }
-p.attlist &= empty
-pre = element pre { pre.attlist, text }
-pre.attlist &= empty
-codesample = element codesample { codesample.attlist, text }
-codesample.attlist &=
+}
+
+p = element p { inline }
+
+pre = element pre { text }
+
+codesample = element codesample {
   attribute lang { "c" | "ebuild" | "make" | "m4" | "sgml" },
-  attribute numbering { "lines" }?
-note = element note { note.attlist, (text | inline.class)* }
-note.attlist &= empty
-important =
-  element important { important.attlist, (text | inline.class)* }
-important.attlist &= empty
-warning = element warning { warning.attlist, (text | inline.class)* }
-warning.attlist &= empty
-todo = element todo { todo.attlist, (text | inline.class)* }
-todo.attlist &= empty
-figure = element figure { figure.attlist, empty }
-figure.attlist &=
+  attribute numbering { "lines" }?,
+  text
+}
+
+note = element note { inline }
+important = element important { inline }
+warning = element warning { inline }
+todo = element todo { inline }
+
+figure = element 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-01-25 Thread Ulrich Müller
commit: c238a3e8fd3240b27f39bb25f3368e36912b71fc
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Jan 25 00:31:52 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Jan 25 00:31:52 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=c238a3e8

mirrors.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 mirrors.rnc | 26 --
 1 file changed, 4 insertions(+), 22 deletions(-)

diff --git a/mirrors.rnc b/mirrors.rnc
index e516d0c..23a8d7d 100644
--- a/mirrors.rnc
+++ b/mirrors.rnc
@@ -1,27 +1,20 @@
-# $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
+# description: A set of mirrorgroups
 # example: 
 #
 #  ...
 #
 #...
-#
-#  Canada
-#  ...
-#
 #  
 
 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
 
-mirrors = element mirrors { attlist.mirrors, mirrorgroup*, countries }
+mirrors = element mirrors { attlist.mirrors, mirrorgroup* }
 attlist.mirrors &= empty
 # element: mirrorgroup
 # description: Group mirrors by region and country.
-#  The country code must exist in //countries/country
 # example: 
 #
 #  ...
@@ -31,7 +24,8 @@ attlist.mirrors &= empty
 mirrorgroup = element mirrorgroup { attlist.mirrorgroup, mirror* }
 attlist.mirrorgroup &=
   attribute region { text },
-  attribute country { xsd:IDREF }
+  attribute country { text },
+  attribute countryname { text }?
 # element: mirror
 # description: One per mirror; name the mirror and provide one or more uris
 # optionally: provide GPS coordinates, a city and a bug id.
@@ -64,16 +58,4 @@ attlist.uri &=
   [ 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



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-01-25 Thread Ulrich Müller
commit: bd1f8977651b3ea9a7a20fdd439e2f66f236a3bd
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Jan 25 00:18:59 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Jan 25 00:18:59 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=bd1f8977

Makefile: The devmanual now uses RELAX NG instead of DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitignore |  1 +
 Makefile   | 19 +++
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore
index fb79b6a..cf60873 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 *.dtd
+*.stamp
 *.tar.xz

diff --git a/Makefile b/Makefile
index acba372..57ca512 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \
-   projects.dtd repositories.dtd userinfo.dtd
+DTDS = glsa.dtd metadata.dtd mirrors.dtd projects.dtd \
+   repositories.dtd userinfo.dtd
 
-RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
+RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) devbook.rnc
 
 ifneq ($(PV),)
 P=nxml-gentoo-schemas-$(PV)
@@ -10,7 +10,7 @@ P=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d')
 endif
 
 .PHONY: all dist clean
-.PRECIOUS: $(RNCS) $(DTDS)
+.PRECIOUS: $(RNCS)
 
 all: $(RNCS)
 
@@ -18,14 +18,17 @@ dist: Makefile LICENCE schemas.xml $(RNCS)
tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^
 
 clean:
-   rm -f *.dtd *.tar.xz
+   rm -f *.dtd *.stamp *.tar.xz
 
 %.rnc: %.dtd
trang -I dtd -O rnc $< $@
 
-%.dtd:
+$(DTDS):
wget -N --no-verbose https://www.gentoo.org/dtd/$@
 
-devbook.dtd:
+devbook.rnc: devbook.stamp
+
+devbook.stamp:
wget -N --no-verbose \
- https://gitweb.gentoo.org/proj/devmanual.git/plain/$@
+ https://gitweb.gentoo.org/proj/devmanual.git/plain/devbook.rnc
+   touch -r devbook.rnc $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2022-01-21 Thread Ulrich Müller
commit: b86ec5d5a0f7503d1cbb3d994f7b65f8b73a3592
Author: Ulrich Müller  gentoo  org>
AuthorDate: Fri Jan 21 22:04:33 2022 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Fri Jan 21 22:04:33 2022 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=b86ec5d5

Makefile: New dist target replaces $(TARBALL)

Use tar --transform, so we don't need a temporary directory.

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitignore |  1 +
 Makefile   | 20 
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7d15794..fb79b6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 *.dtd
+*.tar.xz

diff --git a/Makefile b/Makefile
index e9c6372..acba372 100644
--- a/Makefile
+++ b/Makefile
@@ -4,25 +4,21 @@ DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
 
 ifneq ($(PV),)
-PN=nxml-gentoo-schemas-$(PV)
+P=nxml-gentoo-schemas-$(PV)
 else
-PN=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d')
+P=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d')
 endif
 
-TARBALL=$(PN).tar.xz
-
-.PHONY: all clean
+.PHONY: all dist clean
 .PRECIOUS: $(RNCS) $(DTDS)
 
-all: $(TARBALL)
+all: $(RNCS)
 
-clean:
-   rm -f *.dtd
+dist: Makefile LICENCE schemas.xml $(RNCS)
+   tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^
 
-$(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
-   mkdir -p $(PN)
-   cp $^ $(PN)
-   tar cJf $@ $(PN)
+clean:
+   rm -f *.dtd *.tar.xz
 
 %.rnc: %.dtd
trang -I dtd -O rnc $< $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2021-09-08 Thread Ulrich Müller
commit: f17c24093ad7b59d8abc21db51007a1a8e94e78c
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Sep  7 18:09:05 2021 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Sep  7 18:09:05 2021 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=f17c2409

devbook.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 54659de..2d21a4a 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -1,6 +1,7 @@
-# Copyright 2019-2020 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
 
 # Distributed under the terms of the MIT/X11 license
+# or the CC-BY-SA-4.0 license (dual-licensed)
 
 # Document Type Definition for the Gentoo Devmanual
 
@@ -52,12 +53,16 @@ title.attlist &= empty
 body =
   element body { body.attlist, (authors | contentsTree | block.class)+ }
 body.attlist &= empty
-authors = element authors { authors.attlist, author+ }
+authors = element authors { authors.attlist, (author+ | authorlist+) }
 authors.attlist &= empty
 author = element author { author.attlist, (text | inline.class)* }
 author.attlist &=
   attribute name { text },
   attribute email { text }?
+authorlist = element authorlist { authorlist.attlist, empty }
+authorlist.attlist &=
+  attribute title { text },
+  attribute href { text }
 contentsTree = element contentsTree { contentsTree.attlist, empty }
 contentsTree.attlist &=
   attribute maxdepth { text }?,



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2021-09-06 Thread Ulrich Müller
commit: b1bab6a516c5512e84ed70b38f0750654ab4a5f5
Author: Ulrich Müller  gentoo  org>
AuthorDate: Wed May 19 07:52:37 2021 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed May 19 07:52:37 2021 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=b1bab6a5

userinfo.rnc: File restored

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile |  2 +-
 schemas.xml  |  1 +
 userinfo.rnc | 44 
 3 files changed, 46 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 304ae7e..e9c6372 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \
-   projects.dtd repositories.dtd
+   projects.dtd repositories.dtd userinfo.dtd
 
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
 

diff --git a/schemas.xml b/schemas.xml
index 0a7f23c..f93bcbb 100644
--- a/schemas.xml
+++ b/schemas.xml
@@ -10,4 +10,5 @@
   
   
   
+  
 

diff --git a/userinfo.rnc b/userinfo.rnc
new file mode 100644
index 000..54a1305
--- /dev/null
+++ b/userinfo.rnc
@@ -0,0 +1,44 @@
+userlist = element userlist { attlist.userlist, user+ }
+attlist.userlist &= empty
+user =
+  element user {
+attlist.user,
+realname,
+pgpkey+,
+alias*,
+email+,
+joined*,
+retired*,
+status?,
+roles?,
+location?
+  }
+attlist.user &= attribute username { xsd:ID }
+realname = element realname { attlist.realname, firstname, familyname }
+attlist.realname &= attribute fullname { text }?
+firstname = element firstname { attlist.firstname, text }
+attlist.firstname &= empty
+familyname = element familyname { attlist.familyname, text }
+attlist.familyname &= attribute sort { text }?
+pgpkey = element pgpkey { attlist.pgpkey, text }
+attlist.pgpkey &= empty
+alias = element alias { attlist.alias, text }
+attlist.alias &= empty
+email = element email { attlist.email, text }
+attlist.email &= empty
+# all dates should be -MM-DD - eg '2006-11-22'
+joined = element joined { attlist.joined, text }
+attlist.joined &= empty
+retired = element retired { attlist.retired, text }
+attlist.retired &= empty
+status = element status { attlist.status, text }
+attlist.status &= empty
+roles = element roles { attlist.roles, text }
+attlist.roles &= empty
+# Location is the string displayed on the webpage
+location = element location { attlist.location, text }
+# signed decimal numbers. degrees north/east.
+attlist.location &=
+  attribute latitude { text }?,
+  attribute longitude { text }?
+start = userlist



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2021-03-15 Thread Ulrich Müller
commit: a0e92e8d81745983f277492e674e8606100a89c1
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sun Mar 14 20:44:47 2021 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sun Mar 14 20:44:47 2021 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=a0e92e8d

metadata.rnc: Update from DTD

Signed-off-by: Ulrich Müller  gentoo.org>

 metadata.rnc | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/metadata.rnc b/metadata.rnc
index bc2a43d..3705f90 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -30,6 +30,12 @@ maintainer =
 attlist.maintainer &=
   [ a:defaultValue = "unknown" ]
   attribute type { "person" | "project" | "unknown" }?
+# proxied attribute determines whether the maintainer is a proxied
+# maintainer (yes), regular dev (no) or a proxy for somebody (proxy). It is
+# valid only for Gentoo maintainers.
+attlist.maintainer &=
+  [ a:defaultValue = "no" ]
+  attribute proxied { "yes" | "no" | "proxy" }?
 #  A long description of the package in freetext
 longdescription =
   element longdescription {



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2021-02-03 Thread Ulrich Müller
commit: 8b179602deb8179086c418108b4de43492d9acbb
Author: Ulrich Müller  gentoo  org>
AuthorDate: Wed Feb  3 11:28:03 2021 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed Feb  3 11:28:03 2021 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=8b179602

devbook.rnc, metadata.rnc: Update from DTDs

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc  | 8 
 metadata.rnc | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 529471e..54659de 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -21,7 +21,8 @@ block.class =
   | ul
   | ol
   | dl
-inline.class = b | c | e | d | uri
+attrib.class = b | c | e
+inline.class = attrib.class | d | uri
 all.class = block.class | inline.class
 guide = element guide { guide.attlist, chapter, \include* }
 guide.attlist &=
@@ -45,9 +46,8 @@ subsection.attlist &= empty
 subsubsection =
   element subsubsection { subsubsection.attlist, title, body }
 subsubsection.attlist &= empty
-# Title texts are used as anchors, so we shouldn't allow any formatting,
-# but unfortunately it is used in the document.
-title = element title { title.attlist, (text | inline.class)* }
+# Title texts are used as anchors, so allow only text attributes
+title = element title { title.attlist, (text | attrib.class)* }
 title.attlist &= empty
 body =
   element body { body.attlist, (authors | contentsTree | block.class)+ }

diff --git a/metadata.rnc b/metadata.rnc
index 6225eaf..bc2a43d 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -96,6 +96,7 @@ attlist.remote-id &=
 | "gitlab"
 | "gitorious"
 | "google-code"
+| "heptapod"
 | "launchpad"
 | "pear"
 | "pecl"



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-03-03 Thread Ulrich Müller
commit: 3763928ca5ec45bd61cfc6eb5b7955a8ebf88068
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Mar  3 08:32:59 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Mar  3 08:32:59 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=3763928c

devbook.rnc: Update from DTD.

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 96edb20..529471e 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -108,11 +108,11 @@ ol = element ol { ol.attlist, li+ }
 ol.attlist &= empty
 li = element li { li.attlist, (text | all.class)* }
 li.attlist &= empty
-dl = element dl { dl.attlist, (dt, dd+)+ }
+dl = element dl { dl.attlist, (dt | dd)+ }
 dl.attlist &= empty
 dt = element dt { dt.attlist, (text | inline.class)* }
 dt.attlist &= empty
-dd = element dd { dd.attlist, (text | inline.class)* }
+dd = element dd { dd.attlist, (text | all.class)* }
 dd.attlist &= empty
 b = element b { b.attlist, (text | inline.class)* }
 b.attlist &= empty



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-02-29 Thread Ulrich Müller
commit: 8faabd289b20cb21c739a1915ea9ed22401c5332
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Feb 29 15:59:56 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Feb 29 15:59:56 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=8faabd28

Makefile: No more automatic dependencies.

The remaining DTDs don't have any interdependencies, which much
simplifies things.

Signed-off-by: Ulrich Müller  gentoo.org>

 .gitignore |  2 --
 Makefile   | 27 ---
 2 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/.gitignore b/.gitignore
index 76c449f..7d15794 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-*.dep
 *.dtd
-.depend

diff --git a/Makefile b/Makefile
index cc4406b..304ae7e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
 DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \
projects.dtd repositories.dtd
 
-DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
 
 ifneq ($(PV),)
@@ -12,36 +11,20 @@ endif
 
 TARBALL=$(PN).tar.xz
 
-.SUFFIXES: .dtd .rnc .dep
-.PHONY: depend all clean
+.PHONY: all clean
 .PRECIOUS: $(RNCS) $(DTDS)
-.INTERMEDIATE: $(DTDDEPS)
 
-all: .depend $(TARBALL)
-
-depend: .depend
+all: $(TARBALL)
 
 clean:
-   rm -f *.dtd *.dep .depend
-
-.depend: $(DTDDEPS)
-   cat *.dep > $@
+   rm -f *.dtd
 
 $(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
mkdir -p $(PN)
cp $^ $(PN)
tar cJf $@ $(PN)
 
-.dtd.dep:
-   echo -n > $@
-   sed -n -e '/ENTITY/s||\1|p' $< | \
-   while read dep; do \
-   echo "$(patsubst %.dtd,%.rnc,$<): $$dep.rnc $$dep.dtd" >> $@ || 
exit 1; \
-   echo "$(TARBALL): $$dep.rnc" >> $@ || exit 1; \
-   $(MAKE) "$$dep.dep" || exit 1; \
-   done
-
-.dtd.rnc:
+%.rnc: %.dtd
trang -I dtd -O rnc $< $@
 
 %.dtd:
@@ -50,5 +33,3 @@ $(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
 devbook.dtd:
wget -N --no-verbose \
  https://gitweb.gentoo.org/proj/devmanual.git/plain/$@
-
--include .depend



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-02-29 Thread Ulrich Müller
commit: 4a1383f3f12782fd1d4f229d8784e22339508fb7
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Feb 29 15:59:08 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Feb 29 15:59:08 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=4a1383f3

Makefile: Update URL for devbook.dtd.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8d0c661..cc4406b 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ $(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
wget -N --no-verbose https://www.gentoo.org/dtd/$@
 
 devbook.dtd:
-   wget -N --no-verbose https://devmanual.gentoo.org/$@
+   wget -N --no-verbose \
+ https://gitweb.gentoo.org/proj/devmanual.git/plain/$@
 
 -include .depend



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-01-22 Thread Ulrich Müller
commit: d7285c11f633a9a5356226ed523048e223384c9e
Author: Ulrich Müller  gentoo  org>
AuthorDate: Wed Jan 22 19:54:29 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed Jan 22 19:54:29 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=d7285c11

devbook.rnc: Update from DTD.

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 758d836..96edb20 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -1,4 +1,4 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2020 Gentoo Authors
 
 # Distributed under the terms of the MIT/X11 license
 
@@ -85,10 +85,8 @@ figure.attlist &=
   attribute link { text },
   attribute short { text }?,
   attribute caption { text }?
-table = element table { table.attlist, tcolumn*, tr+ }
+table = element table { table.attlist, tr+ }
 table.attlist &= empty
-tcolumn = element tcolumn { tcolumn.attlist, empty }
-tcolumn.attlist &= attribute width { text }
 tr = element tr { tr.attlist, (th | ti)+ }
 tr.attlist &= empty
 th = element th { th.attlist, (text | inline.class)* }



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-01-09 Thread Ulrich Müller
commit: 7ca83421a7fca5f8919f13f0f0681a3f13dc8bfe
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Jan  9 23:30:22 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Jan  9 23:30:22 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=7ca83421

metadata.rnc: Update from DTD.

Signed-off-by: Ulrich Müller  gentoo.org>

 metadata.rnc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metadata.rnc b/metadata.rnc
index 7f4c26e..6225eaf 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -22,7 +22,7 @@ attlist.pkgmetadata &=
 #  One tag for each maintainer of a package, multiple allowed
 maintainer =
   element maintainer {
-attlist.maintainer, email, (description | name)*
+attlist.maintainer, (email | name | description)+
   }
 # type attribute determines whether the maintainer is a person or a project.
 # Unknown is added to handle s in s. Using it (or no



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2020-01-09 Thread Ulrich Müller
commit: 05f57e06e8ac66d0bbfc805ef4d7edb88e4d3be3
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Jan  9 23:31:35 2020 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Jan  9 23:31:35 2020 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=05f57e06

Makefile: Output date in UTC time zone.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 04e04d9..8d0c661 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
 ifneq ($(PV),)
 PN=nxml-gentoo-schemas-$(PV)
 else
-PN=nxml-gentoo-schemas-$(shell date '+%Y%m%d')
+PN=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d')
 endif
 
 TARBALL=$(PN).tar.xz



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-27 Thread Ulrich Müller
commit: 0af560f9e5ad607b40ef222f9b9b2c687a14fa3f
Author: Ulrich Müller  gentoo  org>
AuthorDate: Fri Dec 27 09:41:10 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Fri Dec 27 09:41:10 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=0af560f9

devbook.rnc: Update.

Signed-off-by: Ulrich Müller  gentoo.org>

 devbook.rnc | 25 +
 1 file changed, 5 insertions(+), 20 deletions(-)

diff --git a/devbook.rnc b/devbook.rnc
index 1d24153..758d836 100644
--- a/devbook.rnc
+++ b/devbook.rnc
@@ -21,11 +21,9 @@ block.class =
   | ul
   | ol
   | dl
-  | list-group-u
-  | list-group-d
-inline.class = sup | sub | b | c | d | e | path | uri
+inline.class = b | c | e | d | uri
 all.class = block.class | inline.class
-guide = element guide { guide.attlist, (\include | chapter)+ }
+guide = element guide { guide.attlist, chapter, \include* }
 guide.attlist &=
   attribute root { "true" }?,
   attribute self { text }?
@@ -107,36 +105,23 @@ ti.attlist &=
   [ a:defaultValue = "left" ]
   attribute align { "left" | "center" | "right" }?
 ul = element ul { ul.attlist, li+ }
-ul.attlist &= empty
+ul.attlist &= attribute class { text }?
 ol = element ol { ol.attlist, li+ }
 ol.attlist &= empty
 li = element li { li.attlist, (text | all.class)* }
 li.attlist &= empty
-dl = element dl { dl.attlist, (dt, dd)+ }
+dl = element dl { dl.attlist, (dt, dd+)+ }
 dl.attlist &= empty
 dt = element dt { dt.attlist, (text | inline.class)* }
 dt.attlist &= empty
-# The following is strange, but devbook.xsl expects only p elements
-dd = element dd { dd.attlist, p+ }
+dd = element dd { dd.attlist, (text | inline.class)* }
 dd.attlist &= empty
-list-group-u =
-  element list-group-u { list-group-u.attlist, (text | all.class)* }
-list-group-u.attlist &= empty
-list-group-d =
-  element list-group-d { list-group-d.attlist, (text | all.class)* }
-list-group-d.attlist &= empty
-sup = element sup { sup.attlist, (text | inline.class)* }
-sup.attlist &= empty
-sub = element sub { sub.attlist, (text | inline.class)* }
-sub.attlist &= empty
 b = element b { b.attlist, (text | inline.class)* }
 b.attlist &= empty
 c = element c { c.attlist, (text | inline.class)* }
 c.attlist &= empty
 e = element e { e.attlist, (text | inline.class)* }
 e.attlist &= empty
-path = element path { path.attlist, (text | inline.class)* }
-path.attlist &= empty
 d = element d { d.attlist, empty }
 d.attlist &= empty
 uri = element uri { uri.attlist, (text | inline.class)* }



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-27 Thread Ulrich Müller
commit: e83a1319a36e159b7ab010c367ddc117d45eaf5f
Author: Ulrich Müller  gentoo  org>
AuthorDate: Fri Dec 27 09:39:45 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Fri Dec 27 09:39:45 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=e83a1319

Makefile: Suppress empty lines in .dep files.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5fe156f..04e04d9 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ $(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
tar cJf $@ $(PN)
 
 .dtd.dep:
-   echo > $@
+   echo -n > $@
sed -n -e '/ENTITY/s||\1|p' $< | \
while read dep; do \
echo "$(patsubst %.dtd,%.rnc,$<): $$dep.rnc $$dep.dtd" >> $@ || 
exit 1; \



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-17 Thread Ulrich Müller
commit: d3e9d92465e27ff616178012151bf77aa3927a66
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Dec 17 18:54:37 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Dec 17 18:54:37 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=d3e9d924

Update list of DTDs.

The remaining GuideXML DTDs (book.dtd, guide.dtd) and their
dependencies (common.dtd, funnychars.dtd) are gone.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile   |   2 +-
 book.rnc   |  46 
 common.rnc | 140 
 funnychars.rnc | 164 -
 guide.rnc  |  84 -
 schemas.xml|   2 -
 6 files changed, 1 insertion(+), 437 deletions(-)

diff --git a/Makefile b/Makefile
index 915719d..5fe156f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-DTDS = book.dtd devbook.dtd glsa.dtd guide.dtd metadata.dtd mirrors.dtd \
+DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \
projects.dtd repositories.dtd
 
 DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))

diff --git a/book.rnc b/book.rnc
deleted file mode 100644
index bcffc69..000
--- a/book.rnc
+++ /dev/null
@@ -1,46 +0,0 @@
-include "common.rnc"
-book =
-  element book {
-book.attlist,
-title,
-values?,
-author+,
-abstract,
-license?,
-version,
-date,
-part+
-  }
-book.attlist &=
-  attribute link { text }?,
-  attribute disclaimer {
-"articles" | "oldbook" | "draft" | "obsolete"
-  }?,
-  attribute redirect { text }?,
-  attribute lang { text }?
-part = element part { part.attlist, title, abstract, chapter+ }
-part.attlist &= attribute id { text }?
-chapter =
-  element chapter { chapter.attlist, title, abstract?, \include }
-chapter.attlist &= attribute id { text }?
-sections =
-  element sections {
-sections.attlist, abstract?, version, date, section+
-  }
-sections.attlist &= empty
-section =
-  element section {
-section.attlist,
-(\include
- | (title, (body+ | subsection+)))
-  }
-subsection =
-  element subsection {
-subsection.attlist,
-(\include | (title?, body+))
-  }
-subsection.attlist &=
-  attribute id { text }?,
-  attribute test { text }?
-body = element body { body.attlist, (\include | block.class+) }
-start = sections | book | included | summary | glepindex

diff --git a/common.rnc b/common.rnc
deleted file mode 100644
index 5373e73..000
--- a/common.rnc
+++ /dev/null
@@ -1,140 +0,0 @@
-# Import funny characters
-
-namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
-
-inline.class =
-  sup | sub | b | brite | c | e | path | img | br | mail | uri | keyval
-pre.class =
-  comment | i | keyword | ident | const | stmt | var | keyval | uri
-lists.class = ul | ol | dl
-ti.class = inline.class | lists.class | fig
-block.class =
-  figure | fig | note | impo | warn | pre | p | table | lists.class
-title = element title { title.attlist, text }
-title.attlist &= empty
-values = element values { values.attlist, key+ }
-values.attlist &= empty
-key = element key { key.attlist, text }
-key.attlist &= attribute id { text }?
-author = element author { author.attlist, (text | mail)* }
-author.attlist &= attribute title { text }?
-mail = element mail { mail.attlist, text }
-mail.attlist &= attribute link { text }?
-uri = element uri { uri.attlist, (text | img)* }
-uri.attlist &= attribute link { text }?
-date = element date { date.attlist, text }
-date.attlist &= empty
-abstract = element abstract { abstract.attlist, text }
-abstract.attlist &= empty
-summary = element summary { summary.attlist, text }
-summary.attlist &= empty
-license = element license { license.attlist, empty }
-license.attlist &= attribute version { text }?
-version = element version { version.attlist, text }
-version.attlist &= empty
-figure = element figure { figure.attlist, empty }
-figure.attlist &=
-  attribute caption { text }?,
-  attribute short { text }?,
-  attribute link { text }
-fig = element fig { fig.attlist, empty }
-fig.attlist &=
-  attribute short { text }?,
-  attribute linkto { text }?,
-  attribute link { text }
-img = element img { img.attlist, empty }
-img.attlist &= attribute src { text }
-br = element br { br.attlist, empty }
-br.attlist &= empty
-note = element note { note.attlist, (text | inline.class)* }
-note.attlist &= attribute test { text }?
-impo = element impo { impo.attlist, (text | inline.class)* }
-impo.attlist &= attribute test { text }?
-warn = element warn { warn.attlist, (text | inline.class)* }
-warn.attlist &= attribute test { text }?
-pre = element pre { pre.attlist, (text | pre.class)* }
-pre.attlist &=
-  attribute caption { text },
-  attribute test { text }?
-comment = element comment { comment.attlist, (text | pre.class | b)* }
-comment.attlist &= empty
-i = element i { i.attlist, (text | pre.class)* }
-i.attlist &= empty
-keyword = element keyword { 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-17 Thread Ulrich Müller
commit: ad893ea8543ec69c45c712db58cfaa2a0b749063
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Dec 17 18:57:30 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Dec 17 18:57:30 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=ad893ea8

schemas.xml: Use document element to locate devbook.rnc.

The "guide" document element was previously used for GuideXML, and is
used for Devbook XML as well. This seems still more reliable than
using the rather generic "text.xml" filename for locating the schema.

Signed-off-by: Ulrich Müller  gentoo.org>

 schemas.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/schemas.xml b/schemas.xml
index d9c7753..0a7f23c 100644
--- a/schemas.xml
+++ b/schemas.xml
@@ -1,11 +1,11 @@
 
 http://thaiopensource.com/ns/locating-rules/1.0;>
-  
-  
-  
   
   
+  
+  
+  
   
   
   



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-17 Thread Ulrich Müller
commit: f2d97490637ae0ae50dfe6165fd1ab53d5b993b4
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Dec 17 18:52:08 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Dec 17 18:52:08 2019 +
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 000..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 @@
   
   
   
+  
   
   
   



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-17 Thread Ulrich Müller
commit: d8342fb563bd66da93b93d970e43baa05e6652cd
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Dec 14 14:40:09 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Dec 14 14:40:09 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=d8342fb5

Add devbook.rnc for Gentoo devmanual.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile|   6 ++-
 devbook.rnc | 144 
 schemas.xml |   4 ++
 3 files changed, 153 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 58802fe..9a40f59 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-DTDS = book.dtd glsa.dtd guide.dtd metadata.dtd projects.dtd repositories.dtd
+DTDS = book.dtd devbook.dtd glsa.dtd guide.dtd metadata.dtd \
+   projects.dtd repositories.dtd
 
 DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
@@ -46,4 +47,7 @@ $(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
 %.dtd:
wget -N --no-verbose https://www.gentoo.org/dtd/$@
 
+devbook.dtd:
+   wget -N --no-verbose https://devmanual.gentoo.org/$@
+
 -include .depend

diff --git a/devbook.rnc b/devbook.rnc
new file mode 100644
index 000..1d24153
--- /dev/null
+++ b/devbook.rnc
@@ -0,0 +1,144 @@
+# Copyright 2019 Gentoo Authors
+
+# Distributed under the terms of the MIT/X11 license
+
+# Document Type Definition for the Gentoo Devmanual
+
+# Based on common.dtd from GuideXML
+
+namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
+
+block.class =
+  p
+  | pre
+  | codesample
+  | note
+  | important
+  | warning
+  | todo
+  | figure
+  | table
+  | ul
+  | ol
+  | dl
+  | list-group-u
+  | list-group-d
+inline.class = sup | sub | b | c | d | e | path | uri
+all.class = block.class | inline.class
+guide = element guide { guide.attlist, (\include | chapter)+ }
+guide.attlist &=
+  attribute root { "true" }?,
+  attribute self { text }?
+\include = element include { include.attlist, empty }
+include.attlist &= attribute href { text }
+chapter =
+  element chapter { chapter.attlist, title, (body | section), section* }
+chapter.attlist &= empty
+section =
+  element section {
+section.attlist, title, (body | subsection), subsection*
+  }
+section.attlist &= empty
+subsection =
+  element subsection {
+subsection.attlist, title, (body | subsubsection), subsubsection*
+  }
+subsection.attlist &= empty
+subsubsection =
+  element subsubsection { subsubsection.attlist, title, body }
+subsubsection.attlist &= empty
+# Title texts are used as anchors, so we shouldn't allow any formatting,
+# but unfortunately it is used in the document.
+title = element title { title.attlist, (text | inline.class)* }
+title.attlist &= empty
+body =
+  element body { body.attlist, (authors | contentsTree | block.class)+ }
+body.attlist &= empty
+authors = element authors { authors.attlist, author+ }
+authors.attlist &= empty
+author = element author { author.attlist, (text | inline.class)* }
+author.attlist &=
+  attribute name { text },
+  attribute email { text }?
+contentsTree = element contentsTree { contentsTree.attlist, empty }
+contentsTree.attlist &=
+  attribute maxdepth { text }?,
+  attribute root { text }?,
+  attribute extraction { text }?
+p = element p { p.attlist, (text | inline.class)* }
+p.attlist &= empty
+pre = element pre { pre.attlist, text }
+pre.attlist &= empty
+codesample = element codesample { codesample.attlist, text }
+codesample.attlist &=
+  attribute lang { "c" | "ebuild" | "make" | "m4" | "sgml" },
+  attribute numbering { "lines" }?
+note = element note { note.attlist, (text | inline.class)* }
+note.attlist &= empty
+important =
+  element important { important.attlist, (text | inline.class)* }
+important.attlist &= empty
+warning = element warning { warning.attlist, (text | inline.class)* }
+warning.attlist &= empty
+todo = element todo { todo.attlist, (text | inline.class)* }
+todo.attlist &= empty
+figure = element figure { figure.attlist, empty }
+figure.attlist &=
+  attribute link { text },
+  attribute short { text }?,
+  attribute caption { text }?
+table = element table { table.attlist, tcolumn*, tr+ }
+table.attlist &= empty
+tcolumn = element tcolumn { tcolumn.attlist, empty }
+tcolumn.attlist &= attribute width { text }
+tr = element tr { tr.attlist, (th | ti)+ }
+tr.attlist &= empty
+th = element th { th.attlist, (text | inline.class)* }
+th.attlist &=
+  attribute colspan { text }?,
+  attribute rowspan { text }?,
+  [ a:defaultValue = "left" ]
+  attribute align { "left" | "center" | "right" }?
+ti = element ti { ti.attlist, (text | all.class)* }
+ti.attlist &=
+  attribute colspan { text }?,
+  attribute rowspan { text }?,
+  attribute nowrap { text }?,
+  [ a:defaultValue = "left" ]
+  attribute align { "left" | "center" | "right" }?
+ul = element ul { ul.attlist, li+ }
+ul.attlist &= empty
+ol = element ol { ol.attlist, li+ }
+ol.attlist &= empty
+li = element li { 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-10 Thread Ulrich Müller
commit: 522fcdedc74fe32ae8cc6c80bea41ccd647ac4fc
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Dec  9 22:20:23 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Dec  9 22:20:23 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=522fcded

Update list of DTDs.

gleps.dtd, metadoc.dtd, project.dtd, and userinfo.dtd are gone.

Signed-off-by: Ulrich Müller  gentoo.org>

 Makefile |   3 +-
 gleps.rnc|  14 ---
 metadoc.rnc  |  80 --
 project.rnc  | 123 ---
 schemas.xml  |   4 --
 userinfo.rnc |  44 -
 6 files changed, 1 insertion(+), 267 deletions(-)

diff --git a/Makefile b/Makefile
index 04db712..58802fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
-DTDS = book.dtd gleps.dtd glsa.dtd guide.dtd metadata.dtd metadoc.dtd  \
-   project.dtd projects.dtd repositories.dtd userinfo.dtd
+DTDS = book.dtd glsa.dtd guide.dtd metadata.dtd projects.dtd repositories.dtd
 
 DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))

diff --git a/gleps.rnc b/gleps.rnc
deleted file mode 100644
index 19d90c0..000
--- a/gleps.rnc
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
-
-gleps = element gleps { attlist.gleps, glep+ }
-attlist.gleps &= empty
-glep = element glep { attlist.glep, (text | uri)* }
-attlist.glep &=
-  attribute id { text },
-  attribute file { text },
-  [ a:defaultValue = "S" ] attribute type { "S" | "I" }?,
-  [ a:defaultValue = "D" ]
-  attribute status { "D" | "d" | "A" | "F" | "R" | "W" | "M" }?
-uri = element uri { attlist.uri, text }
-attlist.uri &= attribute link { text }
-start = gleps

diff --git a/metadoc.rnc b/metadoc.rnc
deleted file mode 100644
index 481587c..000
--- a/metadoc.rnc
+++ /dev/null
@@ -1,80 +0,0 @@
-include "common.rnc"
-metadoc =
-  element metadoc {
-metadoc.attlist, version, members, categories, files, docs
-  }
-metadoc.attlist &=
-  attribute lang { text },
-  attribute parent { text }?
-members = element members { members.attlist, lead*, member* }
-members.attlist &= empty
-lead = element lead { lead.attlist, text* }
-lead.attlist &= empty
-# nickname
-member = element member { member.attlist, text* }
-member.attlist &=
-  attribute mail { text }?,
-  attribute fullname { text }?
-categories = element categories { categories.attlist, cat* }
-categories.attlist &= empty
-cat = element cat { cat.attlist, text* }
-cat.attlist &=
-  attribute id { text },
-  attribute parent { text }?
-files = element files { files.attlist, file* }
-files.attlist &= empty
-file = element file { file.attlist, text* }
-file.attlist &= attribute id { xsd:ID }
-docs = element docs { docs.attlist, doc* }
-docs.attlist &= empty
-doc = element doc { doc.attlist, memberof*, bookref?, bugs? }
-doc.attlist &= attribute fileid { text }
-memberof = element memberof { memberof.attlist, text* }
-memberof.attlist &= empty
-bookref = element bookref { bookref.attlist, empty }
-bookref.attlist &=
-  attribute vpart { text }?,
-  attribute vchap { text }?
-bugs = element bugs { bugs.attlist, bug* }
-bugs.attlist &= empty
-bug = element bug { bug.attlist, text* }
-bug.attlist &=
-  attribute stopper { "yes" | "no" }?,
-  attribute arch { text }?
-dynamic =
-  element dynamic {
-dynamic.attlist,
-version?,
-title,
-intro?,
-(listing | catid* | overview)
-  }
-dynamic.attlist &= attribute metadoc { text }
-intro = element intro { intro.attlist, section* }
-intro.attlist &= empty
-# Section stuff copy/pasted from guide.dtd
-listing = element listing { listing.attlist, \list* }
-listing.attlist &= empty
-\list = element list { list.attlist, text* }
-list.attlist &= empty
-catid = element catid { catid.attlist, text* }
-catid.attlist &= empty
-overview = element overview { overview.attlist, empty }
-overview.attlist &= empty
-section =
-  element section {
-section.attlist,
-(\include | (title?, body+))
-  }
-body = element body { body.attlist, (\include | block.class+) }
-chapter |= notAllowed
-start =
-  dynamic
-  | author
-  | license
-  | values
-  | included
-  | summary
-  | metadoc
-  | abstract
-  | glepindex

diff --git a/project.rnc b/project.rnc
deleted file mode 100644
index 6a885a5..000
--- a/project.rnc
+++ /dev/null
@@ -1,123 +0,0 @@
-namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
-
-include "common.rnc"
-body.class = block.class | glepindex
-body = element body { body.attlist, body.class* }
-project =
-  element project {
-project.attlist,
-name,
-longname?,
-date?,
-author*,
-description,
-longdescription,
-goals?,
-recruitment?,
-(dev
- | resource
- | subproject
- | plannedproject
- | extraproject
- | extrachapter
- | herd
- | task
- | author)*
-  }
-project.attlist &=
-  attribute disclaimer 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2019-12-03 Thread Ulrich Müller
commit: 9fa37b6dc3b368f742c7b7bc3c44feb4e1739d59
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Dec  3 14:55:05 2019 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Dec  3 14:55:05 2019 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=9fa37b6d

DONATING: Remove file.

Acked-by: Diego Elio Pettenò  flameeyes.com>
"Feel free to drop it, lots of it is out of date."
Signed-off-by: Ulrich Müller  gentoo.org>

 DONATING | 42 --
 Makefile |  2 +-
 2 files changed, 1 insertion(+), 43 deletions(-)

diff --git a/DONATING b/DONATING
deleted file mode 100644
index ce23cd7..000
--- a/DONATING
+++ /dev/null
@@ -1,42 +0,0 @@
-This is message from the package's main author and maintainer,
-Diego Elio Pettenò, aka "Flameeyes".
-
-If you fell like donating to me for my work on this software, please
-consider an alternative first.
-
-During Summer 2007 I was hospitalised for an acute pancreatitis, and
-risked my life because of that, as of December 2008 my nightmare might
-not be ended just yet, after two more hospitalisations and a few
-visits to the ER. As the underlying causes of all this are still
-unknown, I would appreciate if any sum you'd have donated to me could
-be donated, instead, to one of the following organisation:
-
-- Fondazione Italiana per la ricerca sulle Malattie del Pancreas -
-  ONLUS (http://www.fimpancreas.org/) [FIMP]
-
-  Donations can be directed to these IBANs:
-IT 70 J 02008 11709 40424060
-IT 03 N 05188 11701 00164768
-
-  In Italy you can donate 5‰ using this "Codice Fiscale" (in your
-  "Dichiarazione dei Redditi"):
-  
-93175800239
-
-- National Pancreas Foundation (http://www.pancreasfoundation.org/)
-  [NPF]
-  If you wish to let me know of your support, then choose for a
-  Donation in Honor, and use this address:
-
-Diego Elio Pettenò
-Via Scaramuzza, 125
-30174 Mestre, VE
-Italy
-
-Thank you for reading this document, and thanks to all the people
-willing to donate.
-
-If you know other foundations, donations to which could be deduced
-from taxes in other countries, feel free to suggest more by mailing me
-at flamee...@gmail.com . Hopefully wherever the research is based, the
-improvements will come equally.

diff --git a/Makefile b/Makefile
index 68f9585..04db712 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ clean:
 .depend: $(DTDDEPS)
cat *.dep > $@
 
-$(TARBALL): Makefile LICENCE DONATING schemas.xml $(RNCS)
+$(TARBALL): Makefile LICENCE schemas.xml $(RNCS)
mkdir -p $(PN)
cp $^ $(PN)
tar cJf $@ $(PN)



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2018-06-18 Thread Ulrich Müller
commit: e7aefd1aeb43dfb6ebe23638fa7c0adcda80a8ed
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jun 18 19:48:22 2018 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jun 18 19:48:22 2018 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=e7aefd1a

Makefile: Fix conditional.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 649478c..68f9585 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ DTDS = book.dtd gleps.dtd glsa.dtd guide.dtd metadata.dtd 
metadoc.dtd   \
 DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))
 
-ifdef ($(PV),)
+ifneq ($(PV),)
 PN=nxml-gentoo-schemas-$(PV)
 else
 PN=nxml-gentoo-schemas-$(shell date '+%Y%m%d')



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2018-06-11 Thread Ulrich Müller
commit: 88b814fa147ad085a74be4308b4de56de254b19d
Author: Ulrich Müller  gentoo  org>
AuthorDate: Thu Mar  2 08:37:32 2017 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Thu Mar  2 08:37:32 2017 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=88b814fa

Update rnc schemas from dtds.

 book.rnc |  2 +-
 glsa.rnc |  3 ++-
 guide.rnc|  2 +-
 metadata.rnc |  1 +
 metadoc.rnc  | 12 ++--
 project.rnc  |  2 +-
 6 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/book.rnc b/book.rnc
index 51d57b1..bcffc69 100644
--- a/book.rnc
+++ b/book.rnc
@@ -43,4 +43,4 @@ subsection.attlist &=
   attribute id { text }?,
   attribute test { text }?
 body = element body { body.attlist, (\include | block.class+) }
-start = summary | glepindex | included | sections | book
+start = sections | book | included | summary | glepindex

diff --git a/glsa.rnc b/glsa.rnc
index f5adaf7..a9f182a 100644
--- a/glsa.rnc
+++ b/glsa.rnc
@@ -49,6 +49,7 @@ attlist.synopsis &= empty
 #infrastructure
 # 
 #   The text contains one keyword that defines the issue.
+#   Note: All type values but 'ebuild' are considered deprecated.
 # 
 # Example: openssl
 # Example: rsync mirror
@@ -87,7 +88,7 @@ attlist.access &= empty
 # Element:  affected
 # Description:  Describe what the affected subjects are.
 # 
-#   If product@type = 'build', the child elements are 'package'
+#   If product@type = 'ebuild', the child elements are 'package'
 #   If product@type = 'portage', the child elements are 'package'
 #   If product@type = 'infrastructure', the child elements are 
 #   'service'

diff --git a/guide.rnc b/guide.rnc
index aaef013..523af1c 100644
--- a/guide.rnc
+++ b/guide.rnc
@@ -81,4 +81,4 @@ mirrorlist.attlist &=
   [ a:defaultValue = "full" ] attribute select { "full" | "partial" }?
 mirrorlist.attlist &=
   [ a:defaultValue = "/main/en/mirrors3.xml" ] attribute src { text }?
-start = guide | included | news | mainpage
+start = guide | mainpage | included | news

diff --git a/metadata.rnc b/metadata.rnc
index 3919793..2ac5f01 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -83,6 +83,7 @@ attlist.remote-id &=
 | "ctan"
 | "freecode"
 | "freshmeat"
+| "gentoo"
 | "github"
 | "gitlab"
 | "gitorious"

diff --git a/metadoc.rnc b/metadoc.rnc
index a69bef0..481587c 100644
--- a/metadoc.rnc
+++ b/metadoc.rnc
@@ -69,12 +69,12 @@ section =
 body = element body { body.attlist, (\include | block.class+) }
 chapter |= notAllowed
 start =
-  summary
-  | glepindex
-  | values
-  | included
-  | dynamic
+  dynamic
   | author
   | license
-  | abstract
+  | values
+  | included
+  | summary
   | metadoc
+  | abstract
+  | glepindex

diff --git a/project.rnc b/project.rnc
index 6984fa9..6a885a5 100644
--- a/project.rnc
+++ b/project.rnc
@@ -120,4 +120,4 @@ milestone.attlist &=
 depends = element depends { depends.attlist, text }
 depends.attlist &= attribute ref { xsd:IDREF }
 chapter |= notAllowed
-start = values | \include | project | included | license | abstract
+start = project | license | values | included | \include | abstract



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2018-06-11 Thread Ulrich Müller
commit: ea7cd6e092def3df76f45f3ed30ecd1e4473e499
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jun 11 22:41:51 2018 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jun 11 22:41:51 2018 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=ea7cd6e0

Update rnc schemas.

 glsa.rnc |  4 +++-
 metadata.rnc | 11 ++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/glsa.rnc b/glsa.rnc
index a9f182a..2711a6a 100644
--- a/glsa.rnc
+++ b/glsa.rnc
@@ -128,7 +128,8 @@ vulnerable = element vulnerable { attlist.vulnerable, text }
 attlist.vulnerable &=
   attribute range {
 "le" | "lt" | "eq" | "gt" | "ge" | "rlt" | "rle" | "rgt" | "rge"
-  }
+  },
+  [ a:defaultValue = "*" ] attribute slot { text }?
 # Element:  unaffected
 # Description:  Version of the fixed (or unaffected) package. In case the 
 #   package is superseded by another package, you need to
@@ -144,6 +145,7 @@ attlist.unaffected &=
   attribute range {
 "le" | "lt" | "eq" | "gt" | "ge" | "rlt" | "rle" | "rgt" | "rge"
   },
+  [ a:defaultValue = "*" ] attribute slot { text }?,
   attribute name { text }?
 # Element:  service
 # Description:  Provide information about the Gentoo services that are

diff --git a/metadata.rnc b/metadata.rnc
index 2ac5f01..7f4c26e 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -10,7 +10,12 @@ attlist.catmetadata &=
 pkgmetadata =
   element pkgmetadata {
 attlist.pkgmetadata,
-(maintainer | longdescription | slots | use | upstream)*
+(maintainer
+ | longdescription
+ | slots
+ | stabilize-allarches
+ | use
+ | upstream)*
   }
 attlist.pkgmetadata &=
   [ a:defaultValue = "" ] attribute pkgname { text }?
@@ -42,6 +47,9 @@ attlist.slot &= attribute name { text }
 # The meaning of sub-SLOTs for the whole package
 subslots = element subslots { attlist.subslots, text* }
 attlist.subslots &= empty
+# whether it's possible to stabilize ALLARCHES
+stabilize-allarches =
+  element stabilize-allarches { attlist.stabilize-allarches, empty }
 # description of what this USE flag does for this package
 use = element use { attlist.use, flag* }
 flag = element flag { attlist.flag, (text | pkg | cat)* }
@@ -128,6 +136,7 @@ attlist.use &= [ a:defaultValue = "en" ] attribute lang { 
text }?
 attlist.maintainer &= attribute restrict { text }?
 attlist.longdescription &= attribute restrict { text }?
 attlist.flag &= attribute restrict { text }?
+attlist.stabilize-allarches &= attribute restrict { text }?
 # standard parts
 
 # an email address



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-05-06 Thread Ulrich Müller
commit: 3bc35f466f90b36c76f72dde69f3f2809b618e11
Author: Ulrich Müller  gentoo  org>
AuthorDate: Fri May  6 07:58:41 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Fri May  6 07:58:41 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=3bc35f46

Update metadata.rnc from DTD.

 metadata.rnc | 41 +++--
 1 file changed, 19 insertions(+), 22 deletions(-)

diff --git a/metadata.rnc b/metadata.rnc
index 2ed65b0..3919793 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -10,12 +10,7 @@ attlist.catmetadata &=
 pkgmetadata =
   element pkgmetadata {
 attlist.pkgmetadata,
-(maintainer
- | natural-name
- | longdescription
- | slots
- | use
- | upstream)*
+(maintainer | longdescription | slots | use | upstream)*
   }
 attlist.pkgmetadata &=
   [ a:defaultValue = "" ] attribute pkgname { text }?
@@ -30,9 +25,6 @@ maintainer =
 attlist.maintainer &=
   [ a:defaultValue = "unknown" ]
   attribute type { "person" | "project" | "unknown" }?
-# Natural name for package, example: LibreOffice (for app-office/libreoffice)
-natural-name = element natural-name { attlist.natural-name, text }
-attlist.natural-name &= empty
 #  A long description of the package in freetext
 longdescription =
   element longdescription {
@@ -42,7 +34,10 @@ longdescription =
 slots = element slots { attlist.slots, slot*, subslots? }
 # A particular SLOT
 slot = element slot { attlist.slot, text* }
-# name attribute holds the name of the SLOT, for sub-SLOTS use the subslots 
element
+# name attribute holds the name of the SLOT, for sub-SLOTS
+# use the subslots element. A slot name of '*' can be used to
+# indicate a single description applying to all the slots in which
+# case no other  elements may be present.
 attlist.slot &= attribute name { text }
 # The meaning of sub-SLOTs for the whole package
 subslots = element subslots { attlist.subslots, text* }
@@ -71,7 +66,7 @@ changelog = element changelog { attlist.changelog, text }
 attlist.changelog &= empty
 # URL where the location of the upstream documentation can be found
 doc = element doc { attlist.doc, text }
-attlist.doc &= [ a:defaultValue = "C" ] attribute lang { text }?
+attlist.doc &= [ a:defaultValue = "en" ] attribute lang { text }?
 # location where to report bugs
 # (may also be an email address prefixed with mailto:)
 bugs-to = element bugs-to { attlist.bugs-to, text }
@@ -110,20 +105,22 @@ cat = element cat { attlist.cat, text }
 attlist.cat &= empty
 # Common attributes
 
-# the lang attribute, specifies the language of this tag. This is 
-# only useful for descriptions of various kinds. If a tag with this 
-# attribute is included there must be a description in the default 
-# language "C" or "en", which is equivalent
-attlist.description &= [ a:defaultValue = "C" ] attribute lang { text }?
+# the lang attribute, specifies the language of this tag in the
+# form of a ISO 639-1 language code. This is only useful for
+# descriptions of various kinds. If a tag with this attribute is
+# included there must be a description in the default language "en"
+attlist.description &=
+  [ a:defaultValue = "en" ] attribute lang { text }?
 attlist.longdescription &=
-  [ a:defaultValue = "C" ] attribute lang { text }?
-attlist.slots &= [ a:defaultValue = "C" ] attribute lang { text }?
-attlist.use &= [ a:defaultValue = "C" ] attribute lang { text }?
+  [ a:defaultValue = "en" ] attribute lang { text }?
+attlist.slots &= [ a:defaultValue = "en" ] attribute lang { text }?
+attlist.use &= [ a:defaultValue = "en" ] attribute lang { text }?
 # The restrict attribute, this attribute specifies restrictions on 
 # the applicability of tags on versions. The format of this attribute is 
-# equal to the format of DEPEND lines in ebuilds. There is one special 
-# value though: restrict="*". A tag that specifies this only applies if 
-# there are no other tags that apply.
+# equal to the format of DEPEND lines in ebuilds. Only package
+# dependency specifications conforming to EAPI=0 syntax are allowed.
+# The dependency specification may only contain references to the
+# package itself and no other package.
 # 
 # For required tags, there must be either an unrestricted version, or a 
 # version that is default restricted.



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-03-12 Thread Ulrich Müller
commit: 134ad07b81b30c833a53f299313a7659f95e2b01
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Mar 12 12:27:57 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Mar 12 12:27:57 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=134ad07b

Update rnc schemas.

 metadata.rnc | 55 ++-
 1 file changed, 10 insertions(+), 45 deletions(-)

diff --git a/metadata.rnc b/metadata.rnc
index b7944d9..2ed65b0 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -1,8 +1,7 @@
+# Metadata for a category
+
 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
 
-packages = element packages { attlist.packages, pkgmetadata* }
-attlist.packages &= empty
-# Metadata for a category
 catmetadata =
   element catmetadata { attlist.catmetadata, longdescription* }
 attlist.catmetadata &=
@@ -48,44 +47,6 @@ attlist.slot &= attribute name { text }
 # The meaning of sub-SLOTs for the whole package
 subslots = element subslots { attlist.subslots, text* }
 attlist.subslots &= empty
-#  The changelog of the package
-
-# Please note that #PCDATA is mentioned only for the upstream changelog
-# element, where the content is a URL. This is due to limitations of the DTD
-changelog = element changelog { attlist.changelog, (text | change)* }
-attlist.changelog &= empty
-#  The changelog contains various "changes"
-change =
-  element change {
-attlist.change,
-date,
-(developer | version | description | file | contributor | bug)*
-  }
-attlist.change &= empty
-date = element date { attlist.date, text }
-attlist.date &= empty
-# The date of the change, in "-MM-DD" format
-developer = element developer { attlist.developer, name?, email }
-attlist.developer &= empty
-#  The developer that made the change. The email is required, name
-# is optional
-version = element version { attlist.version, text }
-attlist.version &= empty
-# version of the packages involved (one tag per version)
-file = element file { attlist.file, text }
-attlist.file &= empty
-# one tag per file touched
-contributor = element contributor { attlist.contributor, name?, email? }
-attlist.contributor &= empty
-# A reference to a user that helped in causing this change. 
-# There should at least be a name or email address included. 
-# Email is preferred
-bug = element bug { attlist.bug, text }
-attlist.bug &= empty
-# bug-id of a bug fixed by this change, multiple allowed. The 
-# format of this is a number or alias for a bug. NOT including a 
-# # character
-
 # description of what this USE flag does for this package
 use = element use { attlist.use, flag* }
 flag = element flag { attlist.flag, (text | pkg | cat)* }
@@ -105,6 +66,9 @@ attlist.upstream &= empty
 attlist.maintainer &=
   [ a:defaultValue = "unknown" ]
   attribute status { "active" | "inactive" | "unknown" }?
+# URL where the upstream changelog can be found
+changelog = element changelog { attlist.changelog, text }
+attlist.changelog &= empty
 # URL where the location of the upstream documentation can be found
 doc = element doc { attlist.doc, text }
 attlist.doc &= [ a:defaultValue = "C" ] attribute lang { text }?
@@ -167,12 +131,13 @@ attlist.maintainer &= attribute restrict { text }?
 attlist.longdescription &= attribute restrict { text }?
 attlist.flag &= attribute restrict { text }?
 # standard parts
+
+# an email address
 email = element email { attlist.email, text }
 attlist.email &= empty
-# an email address
+# the name of a person (maintainer, contributor)
 name = element name { attlist.name, text }
 attlist.name &= empty
-#  the name of a person (maintainer, contributor)
+# A description of a maintainer or change
 description = element description { attlist.description, text }
-#  A description of a maintainer or change
-start = catmetadata | pkgmetadata
+start = pkgmetadata | catmetadata



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-03-12 Thread Ulrich Müller
commit: e387bffa608ce69809a32169b5a735e88735521c
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sat Mar 12 12:10:35 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sat Mar 12 12:10:35 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=e387bffa

Makefile: Special rule for metadata.rnc is no longer needed.

 Makefile | 6 --
 1 file changed, 6 deletions(-)

diff --git a/Makefile b/Makefile
index b55d3a3..649478c 100644
--- a/Makefile
+++ b/Makefile
@@ -44,12 +44,6 @@ $(TARBALL): Makefile LICENCE DONATING schemas.xml $(RNCS)
 .dtd.rnc:
trang -I dtd -O rnc $< $@
 
-# Trang will guess "packages" as start element, which causes Emacs
-# nXML validation to fail. So specify the start elements explicitly.
-metadata.rnc: metadata.dtd
-   trang -I dtd -O rnc -i no-generate-start $< $@
-   echo 'start = catmetadata | pkgmetadata' >> $@
-
 %.dtd:
wget -N --no-verbose https://www.gentoo.org/dtd/$@
 



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: b3af262eb7886db4fcca502b147bcdb29518efeb
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jan 25 21:23:02 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jan 25 21:23:02 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=b3af262e

Update rnc schemas.

 metadata.rnc   | 24 +++
 projects.rnc   | 40 +++
 repositories.rnc   | 69 ++
 staffing-needs.rnc | 22 -
 4 files changed, 128 insertions(+), 27 deletions(-)

diff --git a/metadata.rnc b/metadata.rnc
index 7a23cca..b7944d9 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -11,22 +11,26 @@ attlist.catmetadata &=
 pkgmetadata =
   element pkgmetadata {
 attlist.pkgmetadata,
-(herd
- | maintainer
+(maintainer
  | natural-name
  | longdescription
+ | slots
  | use
  | upstream)*
   }
 attlist.pkgmetadata &=
   [ a:defaultValue = "" ] attribute pkgname { text }?
-# One tag for each herd this package is assigned to.
-herd = element herd { attlist.herd, text }
 #  One tag for each maintainer of a package, multiple allowed
 maintainer =
   element maintainer {
 attlist.maintainer, email, (description | name)*
   }
+# type attribute determines whether the maintainer is a person or a project.
+# Unknown is added to handle s in s. Using it (or no
+# explicit type) for Gentoo maintainers is prohibited.
+attlist.maintainer &=
+  [ a:defaultValue = "unknown" ]
+  attribute type { "person" | "project" | "unknown" }?
 # Natural name for package, example: LibreOffice (for app-office/libreoffice)
 natural-name = element natural-name { attlist.natural-name, text }
 attlist.natural-name &= empty
@@ -35,6 +39,15 @@ longdescription =
   element longdescription {
 attlist.longdescription, (text | pkg | cat)*
   }
+# A description of the packages SLOTs
+slots = element slots { attlist.slots, slot*, subslots? }
+# A particular SLOT
+slot = element slot { attlist.slot, text* }
+# name attribute holds the name of the SLOT, for sub-SLOTS use the subslots 
element
+attlist.slot &= attribute name { text }
+# The meaning of sub-SLOTs for the whole package
+subslots = element subslots { attlist.subslots, text* }
+attlist.subslots &= empty
 #  The changelog of the package
 
 # Please note that #PCDATA is mentioned only for the upstream changelog
@@ -112,6 +125,7 @@ attlist.remote-id &=
 | "freecode"
 | "freshmeat"
 | "github"
+| "gitlab"
 | "gitorious"
 | "google-code"
 | "launchpad"
@@ -139,6 +153,7 @@ attlist.cat &= empty
 attlist.description &= [ a:defaultValue = "C" ] attribute lang { text }?
 attlist.longdescription &=
   [ a:defaultValue = "C" ] attribute lang { text }?
+attlist.slots &= [ a:defaultValue = "C" ] attribute lang { text }?
 attlist.use &= [ a:defaultValue = "C" ] attribute lang { text }?
 # The restrict attribute, this attribute specifies restrictions on 
 # the applicability of tags on versions. The format of this attribute is 
@@ -148,7 +163,6 @@ attlist.use &= [ a:defaultValue = "C" ] attribute lang { 
text }?
 # 
 # For required tags, there must be either an unrestricted version, or a 
 # version that is default restricted.
-attlist.herd &= attribute restrict { text }?
 attlist.maintainer &= attribute restrict { text }?
 attlist.longdescription &= attribute restrict { text }?
 attlist.flag &= attribute restrict { text }?

diff --git a/projects.rnc b/projects.rnc
new file mode 100644
index 000..b78b56f
--- /dev/null
+++ b/projects.rnc
@@ -0,0 +1,40 @@
+namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0;
+
+projects = element projects { attlist.projects, project* }
+attlist.projects &= empty
+# A project (identified by email address)
+project =
+  element project {
+attlist.project, email, name, url, description, subproject*, member*
+  }
+attlist.project &= empty
+# Contact e-mail address of a project or a project member
+email = element email { attlist.email, text }
+attlist.email &= empty
+# Name of a project or a project member
+name = element name { attlist.name, text }
+attlist.name &= empty
+# URL of the project homepage
+url = element url { attlist.url, text }
+attlist.url &= empty
+# Description of the project
+description = element description { attlist.description, text }
+attlist.description &= empty
+# Project member
+member = element member { attlist.member, email, name, role }
+# is-lead="1" indicates that the member is the project's lead
+attlist.member &=
+  [ a:defaultValue = "0" ] attribute is-lead { "0" | "1" }?
+# Project member role
+role = element role { attlist.role, text }
+attlist.role &= empty
+# Subproject of a project
+subproject = element subproject { attlist.subproject, text }
+# inherit-members="1" indicates that the project inherits members
+# from the subproject
+
+# ref="" references the subproject by the contact e-mail address
+attlist.subproject 

[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: ebe9d94f36bd257289286624cef971f0c7a3bdfa
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jan 25 21:20:10 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jan 25 21:20:10 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=ebe9d94f

Update list of DTDs.

 Makefile| 2 +-
 schemas.xml | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 56d1238..b55d3a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 DTDS = book.dtd gleps.dtd glsa.dtd guide.dtd metadata.dtd metadoc.dtd  \
-   project.dtd staffing-needs.dtd userinfo.dtd
+   project.dtd projects.dtd repositories.dtd userinfo.dtd
 
 DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS))
 RNCS = $(patsubst %.dtd,%.rnc,$(DTDS))

diff --git a/schemas.xml b/schemas.xml
index 2e38d1f..6bd96a0 100644
--- a/schemas.xml
+++ b/schemas.xml
@@ -8,6 +8,7 @@
   
   
   
-  
+  
+  
   
-
\ No newline at end of file
+



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: eaf67267b292e0bf058f1491469bcbd4d0aabeda
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jan 25 21:19:25 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jan 25 21:19:25 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=eaf67267

Makefile: Remove redundant files from clean target.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ff5f000..56d1238 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ all: .depend $(TARBALL)
 depend: .depend
 
 clean:
-   rm -f *.dtd *.dep *.dtd .depend
+   rm -f *.dtd *.dep .depend
 
 .depend: $(DTDDEPS)
cat *.dep > $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: 007651b01596f53f5d9a083d6d2ab71553ec4efc
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jan 25 19:38:14 2016 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jan 25 19:38:14 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=007651b0

Makefile: Add a comment.

 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 5b20643..ff5f000 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,8 @@ $(TARBALL): Makefile LICENCE DONATING schemas.xml $(RNCS)
 .dtd.rnc:
trang -I dtd -O rnc $< $@
 
+# Trang will guess "packages" as start element, which causes Emacs
+# nXML validation to fail. So specify the start elements explicitly.
 metadata.rnc: metadata.dtd
trang -I dtd -O rnc -i no-generate-start $< $@
echo 'start = catmetadata | pkgmetadata' >> $@



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: 86251a7c37c55cf30fb598c96266093aa47790a7
Author: Diego Elio Pettenò  gmail  com>
AuthorDate: Wed Mar  9 15:31:03 2011 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed Mar  9 15:31:03 2011 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=86251a7c

Update schemas.

 book.rnc |  2 +-
 guide.rnc|  8 ++--
 metadata.rnc | 13 -
 userinfo.rnc |  6 +++---
 4 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/book.rnc b/book.rnc
index ebec9f6..b7ebf7e 100644
--- a/book.rnc
+++ b/book.rnc
@@ -42,4 +42,4 @@ subsection.attlist &=
   attribute id { text }?,
   attribute test { text }?
 body = element body { body.attlist, (\include | block.class+) }
-start = glepindex | book | included | sections | summary
+start = summary | glepindex | included | sections | book

diff --git a/guide.rnc b/guide.rnc
index 6b5a014..1ef1921 100644
--- a/guide.rnc
+++ b/guide.rnc
@@ -46,7 +46,9 @@ news =
   element news { news.attlist, poster, date, title, summary?, body }
 news.attlist &=
   [ a:defaultValue = "no" ] attribute gentoo { "yes" | "no" }?,
-  attribute category { "gentoo" | "main" | "linux" | "moo" | "plans" }
+  attribute category {
+"gentoo" | "main" | "linux" | "moo" | "plans" | "birthday"
+  }
 subtitle = element subtitle { subtitle.attlist, text }
 subtitle.attlist &= empty
 poster = element poster { poster.attlist, text }
@@ -78,4 +80,6 @@ glsa-latest.attlist &= empty
 mirrorlist = element mirrorlist { mirrorlist.attlist, empty }
 mirrorlist.attlist &=
   [ a:defaultValue = "full" ] attribute select { "full" | "partial" }?
-start = news | included | mainpage | guide
+mirrorlist.attlist &=
+  [ a:defaultValue = "/main/en/mirrors3.xml" ] attribute src { text }?
+start = guide | included | news | mainpage

diff --git a/metadata.rnc b/metadata.rnc
index 4fb8abd..e325a21 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -94,7 +94,18 @@ attlist.bugs-to &= empty
 # specify a type of package identification tracker
 remote-id = element remote-id { attlist.remote-id, text }
 attlist.remote-id &=
-  attribute type { "freshmeat" | "sourceforge" | "cpan" | "vim" }
+  attribute type {
+"freshmeat"
+| "sourceforge"
+| "sourceforge-jp"
+| "cpan"
+| "vim"
+| "google-code"
+| "ctan"
+| "pypi"
+| "rubyforge"
+| "cran"
+  }
 # category/package information for cross-linking in descriptions
 # and useflag descriptions
 pkg = element pkg { attlist.pkg, text }

diff --git a/userinfo.rnc b/userinfo.rnc
index fa3492c..54a1305 100644
--- a/userinfo.rnc
+++ b/userinfo.rnc
@@ -4,11 +4,11 @@ user =
   element user {
 attlist.user,
 realname,
-pgpkey,
+pgpkey+,
 alias*,
 email+,
-joined,
-retired?,
+joined*,
+retired*,
 status?,
 roles?,
 location?



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: 79fafd6b89e9bf633403318e41ebf729198a4403
Author: Diego Elio Pettenò  flameeyes  eu>
AuthorDate: Tue Nov 29 21:02:16 2011 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Tue Nov 29 21:02:16 2011 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=79fafd6b

Update schemas for new license tag version attribute.

 common.rnc  |  2 +-
 metadoc.rnc | 12 ++--
 project.rnc |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/common.rnc b/common.rnc
index a5241d6..5373e73 100644
--- a/common.rnc
+++ b/common.rnc
@@ -29,7 +29,7 @@ abstract.attlist &= empty
 summary = element summary { summary.attlist, text }
 summary.attlist &= empty
 license = element license { license.attlist, empty }
-license.attlist &= empty
+license.attlist &= attribute version { text }?
 version = element version { version.attlist, text }
 version.attlist &= empty
 figure = element figure { figure.attlist, empty }

diff --git a/metadoc.rnc b/metadoc.rnc
index a735d75..a69bef0 100644
--- a/metadoc.rnc
+++ b/metadoc.rnc
@@ -69,12 +69,12 @@ section =
 body = element body { body.attlist, (\include | block.class+) }
 chapter |= notAllowed
 start =
-  glepindex
-  | abstract
-  | author
+  summary
+  | glepindex
   | values
-  | metadoc
-  | license
   | included
-  | summary
   | dynamic
+  | author
+  | license
+  | abstract
+  | metadoc

diff --git a/project.rnc b/project.rnc
index 05b5c2d..65c3ce7 100644
--- a/project.rnc
+++ b/project.rnc
@@ -118,4 +118,4 @@ milestone.attlist &=
 depends = element depends { depends.attlist, text }
 depends.attlist &= attribute ref { xsd:IDREF }
 chapter |= notAllowed
-start = abstract | \include | values | license | included | project
+start = values | \include | project | included | license | abstract



[gentoo-commits] proj/nxml-gentoo-schemas:master commit in: /

2016-01-25 Thread Ulrich Müller
commit: b2741e4a0e1438aaffba2b4de9b171382d8c8fd1
Author: Ulrich Müller  gentoo  org>
AuthorDate: Tue Apr 28 17:53:17 2015 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Mon Jan 25 09:25:18 2016 +
URL:
https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=b2741e4a

Import files from nxml-gentoo-schemas-20150428.

 Makefile | 10 +++---
 book.rnc |  1 +
 guide.rnc|  1 -
 metadata.rnc | 34 ++
 project.rnc  |  4 +++-
 5 files changed, 37 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile
index 9302f27..5b20643 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ else
 PN=nxml-gentoo-schemas-$(shell date '+%Y%m%d')
 endif
 
-TARBALL=$(PN).tar.bz2
+TARBALL=$(PN).tar.xz
 
 .SUFFIXES: .dtd .rnc .dep
 .PHONY: depend all clean
@@ -30,7 +30,7 @@ clean:
 $(TARBALL): Makefile LICENCE DONATING schemas.xml $(RNCS)
mkdir -p $(PN)
cp $^ $(PN)
-   tar jcf $@ $(PN)
+   tar cJf $@ $(PN)
 
 .dtd.dep:
echo > $@
@@ -44,7 +44,11 @@ $(TARBALL): Makefile LICENCE DONATING schemas.xml $(RNCS)
 .dtd.rnc:
trang -I dtd -O rnc $< $@
 
+metadata.rnc: metadata.dtd
+   trang -I dtd -O rnc -i no-generate-start $< $@
+   echo 'start = catmetadata | pkgmetadata' >> $@
+
 %.dtd:
-   wget -N --no-verbose http://www.gentoo.org/dtd/$@
+   wget -N --no-verbose https://www.gentoo.org/dtd/$@
 
 -include .depend

diff --git a/book.rnc b/book.rnc
index b7ebf7e..51d57b1 100644
--- a/book.rnc
+++ b/book.rnc
@@ -16,6 +16,7 @@ book.attlist &=
   attribute disclaimer {
 "articles" | "oldbook" | "draft" | "obsolete"
   }?,
+  attribute redirect { text }?,
   attribute lang { text }?
 part = element part { part.attlist, title, abstract, chapter+ }
 part.attlist &= attribute id { text }?

diff --git a/guide.rnc b/guide.rnc
index 1ef1921..aaef013 100644
--- a/guide.rnc
+++ b/guide.rnc
@@ -35,7 +35,6 @@ guide =
 chapter+
   }
 guide.attlist &=
-  attribute link { text }?,
   attribute type { text }?,
   attribute disclaimer {
 "articles" | "oldbook" | "draft" | "obsolete"

diff --git a/metadata.rnc b/metadata.rnc
index e325a21..7a23cca 100644
--- a/metadata.rnc
+++ b/metadata.rnc
@@ -11,7 +11,12 @@ attlist.catmetadata &=
 pkgmetadata =
   element pkgmetadata {
 attlist.pkgmetadata,
-(herd | maintainer | longdescription | use | upstream)*
+(herd
+ | maintainer
+ | natural-name
+ | longdescription
+ | use
+ | upstream)*
   }
 attlist.pkgmetadata &=
   [ a:defaultValue = "" ] attribute pkgname { text }?
@@ -22,6 +27,9 @@ maintainer =
   element maintainer {
 attlist.maintainer, email, (description | name)*
   }
+# Natural name for package, example: LibreOffice (for app-office/libreoffice)
+natural-name = element natural-name { attlist.natural-name, text }
+attlist.natural-name &= empty
 #  A long description of the package in freetext
 longdescription =
   element longdescription {
@@ -95,16 +103,26 @@ attlist.bugs-to &= empty
 remote-id = element remote-id { attlist.remote-id, text }
 attlist.remote-id &=
   attribute type {
-"freshmeat"
-| "sourceforge"
-| "sourceforge-jp"
+"bitbucket"
 | "cpan"
-| "vim"
-| "google-code"
+| "cpan-module"
+| "cpe"
+| "cran"
 | "ctan"
+| "freecode"
+| "freshmeat"
+| "github"
+| "gitorious"
+| "google-code"
+| "launchpad"
+| "pear"
+| "pecl"
 | "pypi"
 | "rubyforge"
-| "cran"
+| "rubygems"
+| "sourceforge"
+| "sourceforge-jp"
+| "vim"
   }
 # category/package information for cross-linking in descriptions
 # and useflag descriptions
@@ -142,5 +160,5 @@ name = element name { attlist.name, text }
 attlist.name &= empty
 #  the name of a person (maintainer, contributor)
 description = element description { attlist.description, text }
-start = catmetadata | packages
 #  A description of a maintainer or change
+start = catmetadata | pkgmetadata

diff --git a/project.rnc b/project.rnc
index 65c3ce7..6984fa9 100644
--- a/project.rnc
+++ b/project.rnc
@@ -24,7 +24,9 @@ project =
  | task
  | author)*
   }
-project.attlist &= empty
+project.attlist &=
+  attribute disclaimer { "draft" | "obsolete" }?,
+  attribute redirect { text }?
 name = element name { name.attlist, text }
 name.attlist &= empty
 longname = element longname { longname.attlist, text }