Hallo,
I want to specify a Latitude as a simple type, which I do as follows:
It's not quite as simple as a single pattern as '90 59.59' is not allowed, so I've used a union to allow the North and South Poles.
Is there any way of containing csecLatitude00To89 and csecLatitude90 within csecLatitude, as they don't make sense on their own, so would be best to hide them.
- Frink
I want to specify a Latitude as a simple type, which I do as follows:
Code:
<xs:simpleType name="csecLatitude">
<xs:union memberTypes="csecLatitude00To89 csecLatitude90"/>
</xs:simpleType>
<xs:simpleType name="csecLatitude00To89">
<xs:restriction base="xs:string">
<xs:pattern value="[0-8][0-9] [0-5][0-9].[0-5][0-9] [NS]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="csecLatitude90">
<xs:restriction base="xs:string">
<xs:pattern value="90 00.00 [NS]"/>
</xs:restriction>
</xs:simpleType>
It's not quite as simple as a single pattern as '90 59.59' is not allowed, so I've used a union to allow the North and South Poles.
Is there any way of containing csecLatitude00To89 and csecLatitude90 within csecLatitude, as they don't make sense on their own, so would be best to hide them.
- Frink