RoadSegment.xsd 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema targetNamespace="http://example.org/tutorial" xmlns:tut="http://example.org/tutorial"
  3. xmlns:gml="http://www.opengis.net/gml" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
  5. <xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd" />
  6. <xs:element name="RoadSegment" type="tut:RoadSegmentType" />
  7. <xs:complexType name="RoadSegmentType">
  8. <xs:complexContent>
  9. <xs:extension base="gml:AbstractFeatureType">
  10. <xs:sequence>
  11. <xs:element name="name" type="xs:string" />
  12. <xs:element name="fromToNodes" nillable="false">
  13. <xs:complexType>
  14. <xs:sequence>
  15. <xs:element name="fromNode" type="gml:PointPropertyType"
  16. nillable="true" />
  17. <xs:element name="toNode" type="gml:PointPropertyType"
  18. nillable="true" />
  19. </xs:sequence>
  20. <xs:attribute ref="gml:id" use="required" />
  21. </xs:complexType>
  22. </xs:element>
  23. <xs:element name="the_geom" type="gml:LineStringPropertyType" />
  24. <xs:element ref="tut:broadTypeEl" />
  25. </xs:sequence>
  26. </xs:extension>
  27. </xs:complexContent>
  28. </xs:complexType>
  29. <xs:element name="broadTypeEl" type="tut:broadType" />
  30. <xs:complexType name="broadType">
  31. <xs:sequence>
  32. <xs:element name="name" type="xs:string" maxOccurs="unbounded" />
  33. </xs:sequence>
  34. </xs:complexType>
  35. </xs:schema>