Skip to content

Commit

Permalink
refactor(schema): add choice for multiple DoorIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
macintoshpie committed Sep 9, 2020
1 parent b5866bc commit 0ae72ff
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions BuildingSync.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1170,28 +1170,16 @@
<xs:attribute name="IDref" type="xs:IDREF" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="DoorID" minOccurs="0">
<xs:annotation>
<xs:documentation>ID number of the door type associated with this side of the section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FenestrationArea" minOccurs="0">
<xs:annotation>
<xs:documentation>Total area of this fenestration type. (ft2)</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute ref="auc:Source"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="IDref" type="xs:IDREF" use="required"/>
</xs:complexType>
</xs:element>
<xs:choice>
<xs:element ref="auc:DoorID" minOccurs="0"/>
<xs:element name="DoorIDs" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="auc:DoorID" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:element name="ThermalZoneIDs" minOccurs="0">
<xs:annotation>
<xs:documentation>List of thermal zone IDs.</xs:documentation>
Expand Down Expand Up @@ -17520,4 +17508,26 @@
<xs:enumeration value="High"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="DoorID">
<xs:annotation>
<xs:documentation>ID number of the door type associated with this side of the section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FenestrationArea" minOccurs="0">
<xs:annotation>
<xs:documentation>Total area of this fenestration type. (ft2)</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute ref="auc:Source"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="IDref" type="xs:IDREF" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit 0ae72ff

Please sign in to comment.