-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GMLAS: implement resolution of internal xlink:href='#....' references (…
…fixes BRGM/gml_application_schema_toolbox#31) git-svn-id: https://svn.osgeo.org/gdal/trunk@40973 f0d54148-0727-0410-94bb-9a71ac55c965
- Loading branch information
Showing
19 changed files
with
1,070 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<FeatureCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xlink="http://fake_xlink" | ||
xsi:noNamespaceSchemaLocation="gmlas_internal_xlink_href.xsd"> | ||
<main_elt> | ||
<link_to_second_or_third_elt xlink:href="#does_not_exist"/> | ||
</main_elt> | ||
<main_elt> | ||
<link_to_second_or_third_elt xlink:href="#id2"/> | ||
</main_elt> | ||
<main_elt> | ||
<link_to_second_or_third_elt xlink:href="#id3"/> | ||
</main_elt> | ||
<main_elt> | ||
<link_to_second_or_third_elt xlink:href="#id4"/> | ||
</main_elt> | ||
<main_elt> | ||
<link_to_third_elt xlink:href="#id4"/> | ||
</main_elt> | ||
<main_elt> | ||
<link_to_second_or_third_elt> | ||
<second_elt id="id1"/> | ||
</link_to_second_or_third_elt> | ||
</main_elt> | ||
|
||
<second_elt id="id2"/> | ||
|
||
<second_elt id="id3"/> | ||
|
||
<third_elt id="id4"/> | ||
|
||
</FeatureCollection> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xlink="http://fake_xlink" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
|
||
<xs:import namespace="http://fake_xlink" schemaLocation="gmlas_fake_xlink.xsd"/> | ||
|
||
<xs:element name="FeatureCollection"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="main_elt" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element ref="second_elt" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element ref="third_elt" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="main_elt"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="link_to_second_or_third_elt" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence minOccurs="0"> | ||
<xs:any processContents="lax"/> | ||
</xs:sequence> | ||
<xs:attribute ref="xlink:href"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="link_to_third_elt" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence minOccurs="0"> | ||
<xs:element ref="third_elt"/> | ||
</xs:sequence> | ||
<xs:attribute ref="xlink:href"/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="second_elt"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="foo" type="xs:string" minOccurs="0"/> | ||
</xs:sequence> | ||
<xs:attribute name="id" type="xs:ID" use="required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="third_elt"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="foo" type="xs:string" minOccurs="0"/> | ||
</xs:sequence> | ||
<xs:attribute name="id" type="xs:ID"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.