summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-11-21 11:35:34 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-11-21 11:35:34 +0100
commit9380c10504f8770f58ff445932ae468ce89ef63f (patch)
treedfb5c2041afba5212a92c18bcfe0e7fd38052b69 /userinfo.rnc
downloadnxml-gentoo-schemas-9380c10504f8770f58ff445932ae468ce89ef63f.tar.gz
nxml-gentoo-schemas-9380c10504f8770f58ff445932ae468ce89ef63f.tar.bz2
nxml-gentoo-schemas-9380c10504f8770f58ff445932ae468ce89ef63f.zip
Import nxml-gentoo-schemas files from version 20070110.
Diffstat (limited to 'userinfo.rnc')
-rw-r--r--userinfo.rnc80
1 files changed, 80 insertions, 0 deletions
diff --git a/userinfo.rnc b/userinfo.rnc
new file mode 100644
index 0000000..75968df
--- /dev/null
+++ b/userinfo.rnc
@@ -0,0 +1,80 @@
+namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
+
+userlist = element userlist { attlist.userlist, user* }
+attlist.userlist &= empty
+user =
+ element user {
+ attlist.user,
+ realname,
+ pgpkey,
+ email+,
+ joined,
+ birthday,
+ status?,
+ roles?,
+ location?,
+ address*
+ }
+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
+pgpfingerprint = element pgpfingerprint { attlist.pgpfingerprint, text }
+attlist.pgpfingerprint &= empty
+email = element email { attlist.email, text }
+attlist.email &=
+ attribute role { "primary" | "alias" | "secondary" | "gentoo" }
+# all dates should be DD MMMM YYYY - eg '15 October 2006'
+joined = element joined { attlist.joined, text }
+attlist.joined &= empty
+retired = element retired { attlist.retired, text }
+attlist.retired &= empty
+birthday = element birthday { attlist.birthday, text }
+attlist.birthday &= empty
+address =
+ element address {
+ attlist.address,
+ street,
+ number,
+ suffix?,
+ zipcode,
+ city,
+ state?,
+ country,
+ formatted?
+ }
+attlist.address &=
+ attribute role { "main" | "work" | "secondary" | "home" }
+street = element street { attlist.street, text }
+attlist.street &= empty
+number = element number { attlist.number, text }
+attlist.number &= empty
+suffix = element suffix { attlist.suffix, text }
+attlist.suffix &= empty
+zipcode = element zipcode { attlist.zipcode, text }
+attlist.zipcode &= empty
+city = element city { attlist.city, text }
+attlist.city &= empty
+state = element state { attlist.state, text }
+attlist.state &= empty
+country = element country { attlist.country, text }
+attlist.country &= attribute fullname { text }?
+formatted = element formatted { attlist.formatted, text }
+attlist.formatted &=
+ [ a:defaultValue = "preserve" ] attribute xml:space { "preserve" }?
+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 = retired | userlist | pgpfingerprint