Skip to content

Commit 6588b38

Browse files
committed
Fix: Allow value attribute in height_unit element
Same fix as height element - supports attribute-only format: <height_unit value='0'/> (ATAK format) Was rejecting empty text content when only attribute present.
1 parent 919e7db commit 6588b38

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
3-
<xs:element name="height_unit" type="xs:integer"/>
3+
<xs:complexType name="detail_height_unit">
4+
<xs:simpleContent>
5+
<xs:extension base="xs:string">
6+
<xs:attribute name="value" type="xs:integer"/>
7+
</xs:extension>
8+
</xs:simpleContent>
9+
</xs:complexType>
10+
<xs:element name="height_unit" type="detail_height_unit"/>
411
</xs:schema>

0 commit comments

Comments
 (0)