[tdwg-tapir] Schema modification: r448 - trunk/protocol/examples
Author: javier Date: 2006-02-17 17:02:30 +0100 (Fri, 17 Feb 2006) New Revision: 448
Modified: trunk/protocol/examples/wfs_gcp_output.xml Log: added targetnamespaces to all elements defined in the structure schema as a hack to not have to support imports in the XML schema. Testing, testing!
Modified: trunk/protocol/examples/wfs_gcp_output.xml =================================================================== --- trunk/protocol/examples/wfs_gcp_output.xml 2006-02-17 15:51:28 UTC (rev 447) +++ trunk/protocol/examples/wfs_gcp_output.xml 2006-02-17 16:02:30 UTC (rev 448) @@ -7,37 +7,41 @@ http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd "> <structure> - <!-- NameSpaces: - xmlns:wfs="http://www.opengis.net/wfs" - xmlns:gcp="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" - xmlns:gml="http://www.opengis.net/gml" - --> - <xs:schema targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0%22%3E - <!-- wfs --> - <xs:element name="FeatureCollection"> + <!-- + ************************************** + * Testing output format to support multiple namespaces without having to support imports in the schema parsing + * -Javier de la Torre & Markus Doering + *************************************** + Comments: + --------- + -Jtorre: I removed the targetNamespace on the schema element and included it in the top element for more clarity. + -Jtorre: The targetNameSpace now is included in every element but maybe it could be inserted where it changes from the previous... + --> + xs:schema + <xs:element name="FeatureCollection" targetNamespace="http://www.opengis.net/wfs%22%3E xs:complexType xs:sequence - <xs:element maxOccurs="unbounded" name="featureMember"> + <xs:element maxOccurs="unbounded" name="featureMember" targetNamespace="http://www.opengis.net/gml%22%3E xs:complexType xs:sequence - <xs:element name="accession"> + <xs:element name="accession" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0%22%3E xs:complexType xs:sequence - <xs:element name="GermplasmID" type="xs:string" /> - <xs:element name="FAOInstituteCode" type="xs:string" /> - <xs:element name="CollectionName" type="xs:string" /> - <xs:element name="FullScientificName" type="xs:string" /> - <xs:element name="Genus" type="xs:string" /> - <xs:element name="Species" type="xs:string" /> - <xs:element name="CollectingPlace" type="xs:string" /> - <xs:element name="CountryCode" type="xs:string" /> - <xs:element name="LocationGML"> + <xs:element name="GermplasmID" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0%22/%3E + <xs:element name="FAOInstituteCode" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="CollectionName" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="FullScientificName" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="Genus" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="Species" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="CollectingPlace" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="CountryCode" type="xs:string" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0" /> + <xs:element name="LocationGML" targetNamespace="http://www.ipgri.org/schemas/gcp_passport_gml/1.0%22%3E xs:complexType xs:sequence - <xs:element name="Point"> + <xs:element name="Point" targetNamespace="http://www.opengis.net/gml%22%3E xs:complexType xs:sequence - <xs:element name="coordinates"> + <xs:element name="coordinates" targetNamespace="http://www.opengis.net/gml%22%3E xs:complexType xs:simpleContent <xs:extension base="xs:string">
participants (1)
-
tdwg-tapir@lists.tdwg.org