updated planetlab.rnc and regenrated planetlab.xsd
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 7 Dec 2011 21:18:54 +0000 (16:18 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 7 Dec 2011 21:18:54 +0000 (16:18 -0500)
sfa/rspecs/extensions/ext/sfa/1/planetlab.rnc
sfa/rspecs/extensions/ext/sfa/1/planetlab.xsd

index f1ff971..f9d7d17 100644 (file)
@@ -1,13 +1,18 @@
 #
-## Extension for the "initscript" type for RSpecV2 on PlanetLab
-## Version 1
-##
+# Extensions for PlanetLab Resources
+# Version 1
+#
+
+namespace planetlab = "http://www.planet-lab.org/resources/ext/planetlab/1"
 
-default namespace = "http://www.planet-lab.org/resources/ext/initscript/1"
+InitscriptSpec = element planetlab:initscript {
+    attribute name { text }
+}
 
-Node = element initscript {
-   attribute name { text }
+AttributeSpec = element planetlab:attribute {
+    attribute name { text }, 
+    attribute value { text }
 }
 
-start = Node
+start = InitscriptSpec | AttributeSpec
 
index bceb81d..f6b2082 100644 (file)
@@ -1,31 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-
-   Extension for the "initscript" type for RSpecV2 on PlanetLab
-   Version 1
-
+  
+  Extensions for PlanetLab Resources
+  Version 1
+  
 -->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-elementFormDefault="qualified" 
-targetNamespace="http://www.planet-lab.org/resources/sfa/ext/planetlab/1" 
-xmlns:planetlab="http://www.planet-lab.org/resources/sfa/ext/planetlab/1">
-   <xs:element name="initscript">
-     <xs:complexType>
-       <xs:attribute name="name" use="required"/>
-     </xs:complexType>
-   </xs:element>
-   <xs:element name="attribute">
-     <xs:complexType>
-       <xs:attribute name="name" use="required">
-        <xs:annotation>
-          <xs:documentation>Name of this attribute</xs:documentation>
-        </xs:annotation>
-       </xs:attribute>
-       <xs:attribute name="value" use="required">
-        <xs:annotation>
-          <xs:documentation>Value associated with this attribute</xs:documentation>
-        </xs:annotation>
-       </xs:attribute>      
-     </xs:complexType>
-   </xs:element> 
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.planet-lab.org/resources/ext/planetlab/1" xmlns:planetlab="http://www.planet-lab.org/resources/ext/planetlab/1">
+  <xs:element name="initscript">
+    <xs:complexType>
+      <xs:attribute name="name" use="required"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="attribute">
+    <xs:complexType>
+      <xs:attribute name="name" use="required"/>
+      <xs:attribute name="value" use="required"/>
+    </xs:complexType>
+  </xs:element>
 </xs:schema>