From: Andy Bavier Date: Tue, 26 Jan 2010 19:44:27 +0000 (+0000) Subject: VINI RSpec definition in Relax NG Compact syntax X-Git-Tag: sfa-0.9-11~194 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cbe24aff7a798daee9c132917d57cfedc4f2fefb;p=sfa.git VINI RSpec definition in Relax NG Compact syntax --- diff --git a/sfa/rspecs/aggregates/vini/vini.rnc b/sfa/rspecs/aggregates/vini/vini.rnc new file mode 100644 index 00000000..bcd986d0 --- /dev/null +++ b/sfa/rspecs/aggregates/vini/vini.rnc @@ -0,0 +1,41 @@ +start = RSpec +RSpec = element RSpec { + attribute type { xsd:NMTOKEN }, + ( network | request ) +} +network = element network { + attribute name { xsd:NMTOKEN }, + attribute slice { xsd:NMTOKEN }?, + ( site | link )+ +} +site = element site { + attribute id { xsd:ID }, + element name { text }, + node+ +} +node = element node { + attribute id { xsd:ID }, + hostname, + kbps, + sliver* +} +link = element link { + attribute endpoints { xsd:IDREFS }, + element description { text }?, + kbps?, + vlink* +} +request = element request { + ( sliver | vlink )+ +} +sliver = element sliver { + attribute nodeid { xsd:ID }?, + empty +} +vlink = element vlink { + attribute endpoints { xsd:IDREFS }?, + element description { text }?, + kbps? +} +hostname = element hostname { text } +kbps = element kbps { text }