Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schematron bugfixes #15

Draft
wants to merge 2 commits into
base: beta_v4_schema
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions file_upload_schemas/measured_required.sch
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@
<sch:assert role="ERROR" test="h:ConsumptionDetails">Expected ConsumptionDetails</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[ConsumptionInfo]</sch:title>
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[ConsumptionDetail]</sch:title>
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo/h:ConsumptionDetail">
Expand All @@ -381,12 +375,6 @@
<sch:assert role="ERROR" test="h:EndDateTime">Expected EndDateTime</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulation]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation">
<sch:assert role="ERROR" test="h:Layer">Expected Layer</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulationLayer]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation/h:Layer">
Expand Down
10 changes: 2 additions & 8 deletions file_upload_schemas/modeled_recommended.sch
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@
<sch:assert role="ERROR" test="h:ConsumptionDetails">Expected ConsumptionDetails</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:pattern ira:remove-measured="true">
<sch:title>[ConsumptionInfo]</sch:title>
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
<sch:assert role="ERROR" test="h:BPI2400Inputs">Expected BPI2400Inputs</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern ira:remove-measured="true">
Expand Down Expand Up @@ -479,12 +479,6 @@
<sch:assert role="ERROR" test="h:EndDateTime">Expected EndDateTime</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulation]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation">
<sch:assert role="ERROR" test="h:Layer">Expected Layer</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulationLayer]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation/h:Layer">
Expand Down
10 changes: 2 additions & 8 deletions file_upload_schemas/modeled_required.sch
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@
<sch:assert role="ERROR" test="h:ConsumptionDetails">Expected ConsumptionDetails</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:pattern ira:remove-measured="true">
<sch:title>[ConsumptionInfo]</sch:title>
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
<sch:assert role="ERROR" test="h:BPI2400Inputs">Expected BPI2400Inputs</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern ira:remove-measured="true">
Expand Down Expand Up @@ -423,12 +423,6 @@
<sch:assert role="ERROR" test="h:EndDateTime">Expected EndDateTime</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulation]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation">
<sch:assert role="ERROR" test="h:Layer">Expected Layer</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>[WallInsulationLayer]</sch:title>
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation/h:Layer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
</sch:rule>
</sch:pattern>

<sch:pattern>
<sch:pattern ira:remove-measured='true'>
<sch:title>[ConsumptionInfo]</sch:title>
<sch:rule context='/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo'>
<sch:assert role='ERROR' test='h:BPI2400Inputs'></sch:assert>
<sch:assert role='ERROR' test='h:BPI2400Inputs'>Expected BPI2400Inputs</sch:assert>
</sch:rule>
</sch:pattern>

Expand Down Expand Up @@ -100,13 +100,6 @@
</sch:rule>
</sch:pattern>

<sch:pattern>
<sch:title>[WallInsulation]</sch:title>
<sch:rule context='/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation'>
<sch:assert role='ERROR' test='h:Layer'>Expected Layer</sch:assert>
</sch:rule>
</sch:pattern>

<sch:pattern>
<sch:title>[WallInsulationLayer]</sch:title>
<sch:rule context='/h:HPXML/h:Building/h:BuildingDetails/h:Enclosure/h:Walls/h:Wall/h:Insulation/h:Layer'>
Expand Down