summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-04-05 22:28:57 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-04-05 22:28:57 +0200
commite85b5383b314ea8259de0e250e56f52ec44bd90e (patch)
tree7cb8ba5d5f7b35f1710535649af845d45bb3b295 /glsa.rnc
parentFix year. (diff)
downloadnxml-gentoo-schemas-e85b5383b314ea8259de0e250e56f52ec44bd90e.tar.gz
nxml-gentoo-schemas-e85b5383b314ea8259de0e250e56f52ec44bd90e.tar.bz2
nxml-gentoo-schemas-e85b5383b314ea8259de0e250e56f52ec44bd90e.zip
Update for new DTDs.
Diffstat (limited to 'glsa.rnc')
-rw-r--r--glsa.rnc12
1 files changed, 8 insertions, 4 deletions
diff --git a/glsa.rnc b/glsa.rnc
index 3ca92a0..f5adaf7 100644
--- a/glsa.rnc
+++ b/glsa.rnc
@@ -1,4 +1,6 @@
-# $Header: /var/cvsroot/gentoo/xml/htdocs/dtd/glsa.dtd,v 1.16 2007/11/05 00:54:20 robbat2 Exp $
+# $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 =
element glsa {
@@ -62,10 +64,11 @@ announced = element announced { attlist.announced, text }
attlist.announced &= empty
# Element: revised
# Description: Last revision date of the GLSA
+# Attribute: @count: number of revisions
#
-# Example: <revised>2003-11-20</revised>
+# Example: <revised count="02">2003-11-20</revised>
revised = element revised { attlist.revised, text }
-attlist.revised &= empty
+attlist.revised &= [ a:defaultValue = "01" ] attribute count { text }?
# Element: bug
# Description: Number of the bug on bugs.gentoo.org, if any
# Occurrence: The bug element can occur 0, 1 or more times
@@ -274,7 +277,7 @@ attlist.br &= empty
# Description: Add license information
#
# Example: <license/>
-license = element license { attlist.license, text }
+license = element license { attlist.license, EMPTY }
attlist.license &= empty
# Element: metadata
# Description: Metadata information for GLSAMaker
@@ -288,4 +291,5 @@ attlist.metadata &=
attribute revision { text }?,
attribute author { text }?,
attribute timestamp { text }?
+EMPTY |= notAllowed
start = glsa