Root element encoding Change Requests | OGC

Copyright © 2010 Open Geospatial Consortium, Inc. All Rights Reserved. 11 compliance level of an application schema. Although this profile recommends that this prefix be named gmlsf, a compliant schema may use any name that conforms to XML- Schema for this prefix as long at it is correctly bound to the namespace http:www.opengis.netgmlsf2.0. Line 7 sets the default value for the elementFormDefault attribute for elements to qualified. This indicates that locally defined elements are added to the target namespace. Finally, the version attribute should be set to reflect the version of the application schema document being generated. The value ‘’99.99.99’’ is a placeholder for any version value, in any format, that has meaning to the entity or organization creating the schema document.

8.3 Importing and including schemas

8.3.1 Importing the GML schema

The following XML fragment imports the GML schema: 1 xsd:import namespace=http:www.opengis.netgml3.2 2 schemaLocation=http:schemas.opengis.netgml3.2.1gml.xsd The value of the namespace attribute shall match the GML namespace declaration in the root element. The schema to be imported shall be the complete GML schema, denoted above using the file name gml.xsd. The value of the schemaLocation attribute shall be a URL absolute or relative that resolves to the contents of the GML Schema. The schema fragment above shows a URL that points to the physical file, schemas.opengis.netgml3.2.1gml.xsd, but any URL may be used e.g. an HTTP GET request that resolves to the appropriate schema. It should be noted that the schemaLocation attribute is a hint for schema aware parsers and may not necessarily be resolved or used. However, application schemas that comply with this profile shall still specify the schemaLocation attribute.

8.3.2 Importing the compliance levels schema

The following XML fragment imports the schema that declares the ComplianceLevel element used to declare the compliance level of an application schema: 1 xsd:import namespace=http:www.opengis.netgmlsf2.0 2 schemaLocation=http:…schema repository path…gmlsfLevels.xsd The value of the namespace attribute shall match the gmlsf namespace declaration in the root element. The value of the schemaLocation attribute shall be a URL absolute or relative that resolves to the contents of the schema file gmlsfLevels.xsd. The schema fragment above 12 Copyright © 2010 Open Geospatial Consortium, Inc. All Rights Reserved. shows a URL that points to the physical file, gmlsfLevels.xsd, but any URL may be used e.g. an HTTP GET request that resolves to a schema. It should be noted that the schemaLocation attribute is a hint for schema aware parsers and may not necessarily be resolved or used. However, application schemas that comply with this profile shall specify the schemaLocation attribute.

8.3.3 Importing and including other application schemas