You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HPXMLtoOpenStudio/resources/hpxml_schematron/EPvalidator.xml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -417,6 +417,8 @@
417
417
<sch:assertrole='ERROR'test='count(h:NumberofUnits) <= 1'>Expected 0 or 1 element(s) for xpath: NumberofUnits</sch:assert>
418
418
<sch:assertrole='ERROR'test='count(h:NumberofConditionedFloors) = 1'>Expected 1 element(s) for xpath: NumberofConditionedFloors</sch:assert>
419
419
<sch:assertrole='ERROR'test='count(h:NumberofConditionedFloorsAboveGrade) = 1'>Expected 1 element(s) for xpath: NumberofConditionedFloorsAboveGrade</sch:assert>
420
+
<!-- We are more strict than HPXML schema for NumberofConditionedFloorsAboveGrade; see https://github.com/NREL/OpenStudio-HPXML/issues/1755 -->
421
+
<sch:assertrole='ERROR'test='number(h:NumberofConditionedFloorsAboveGrade) > 0 or not(h:NumberofConditionedFloorsAboveGrade)'>Expected NumberofConditionedFloorsAboveGrade to be greater than 0</sch:assert>
420
422
<sch:assertrole='ERROR'test='number(h:NumberofConditionedFloors) >= number(h:NumberofConditionedFloorsAboveGrade) or not(h:NumberofConditionedFloors) or not(h:NumberofConditionedFloorsAboveGrade)'>Expected NumberofConditionedFloors to be greater than or equal to NumberofConditionedFloorsAboveGrade</sch:assert>
421
423
<sch:assertrole='ERROR'test='count(h:AverageCeilingHeight) <= 1'>Expected 0 or 1 element(s) for xpath: AverageCeilingHeight</sch:assert>
422
424
<sch:assertrole='ERROR'test='count(h:NumberofBedrooms) = 1'>Expected 1 element(s) for xpath: NumberofBedrooms</sch:assert>
'invalid-number-of-bedrooms-served-recirc'=>['Expected NumberofBedroomsServed to be greater than ../../../../../BuildingSummary/BuildingConstruction/NumberofBedrooms [context: /HPXML/Building/BuildingDetails/Systems/WaterHeating/HotWaterDistribution/extension/SharedRecirculation, id: "HotWaterDistribution1"]'],
196
196
'invalid-number-of-bedrooms-served-water-heater'=>['Expected extension/NumberofBedroomsServed to be greater than ../../../BuildingSummary/BuildingConstruction/NumberofBedrooms [context: /HPXML/Building/BuildingDetails/Systems/WaterHeating/WaterHeatingSystem[IsSharedSystem="true"], id: "WaterHeatingSystem1"]'],
197
197
'invalid-number-of-conditioned-floors'=>['Expected NumberofConditionedFloors to be greater than or equal to NumberofConditionedFloorsAboveGrade [context: /HPXML/Building/BuildingDetails/BuildingSummary/BuildingConstruction, id: "MyBuilding"]'],
198
+
'invalid-number-of-conditioned-floors-above-grade'=>['Expected NumberofConditionedFloorsAboveGrade to be greater than 0 [context: /HPXML/Building/BuildingDetails/BuildingSummary/BuildingConstruction, id: "MyBuilding"]'],
198
199
'invalid-pilot-light-heating-system'=>['Expected 1 element(s) for xpath: ../../HeatingSystemFuel[text()!="electricity"]'],
199
200
'invalid-soil-type'=>["Expected SoilType to be 'sand' or 'silt' or 'clay' or 'loam' or 'gravel' or 'unknown' [context: /HPXML/Building/BuildingDetails/BuildingSummary/Site/Soil, id: \"MyBuilding\"]"],
200
201
'invalid-shared-vent-in-unit-flowrate'=>['Expected RatedFlowRate to be greater than extension/InUnitFlowRate [context: /HPXML/Building/BuildingDetails/Systems/MechanicalVentilation/VentilationFans/VentilationFan[UsedForWholeBuildingVentilation="true" and IsSharedSystem="true"], id: "VentilationFan1"]'],
0 commit comments