Skip to content

Commit eaa56f5

Browse files
authored
Merge pull request #47 from pvlib/fix-issue-46
Added a validation rule for up_axis tag: mandatory and value must be Z_UP
2 parents f9ec6fb + d4b6f4a commit eaa56f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

schema/pvcollada_structure_2.0.sch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
</assert>
2626
</rule>
2727
</pattern>
28+
29+
<!-- Pattern: Ensure up_axis is Z_UP -->
30+
<pattern id="asset_up_axis_requirement">
31+
<rule context="collada:COLLADA/collada:asset">
32+
<assert test="collada:up_axis">
33+
Asset must contain an up_axis element
34+
</assert>
35+
<assert test="collada:up_axis = 'Z_UP'">
36+
up_axis must have value 'Z_UP'. Found '<value-of select="collada:up_axis"/>'
37+
</assert>
38+
</rule>
39+
</pattern>
2840

2941
<!-- Pattern: Asset-level PVCollada elements placement -->
3042
<pattern id="asset_pvcollada_placement">

0 commit comments

Comments
 (0)