summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpab <bigot@acm.org>2010-01-28 07:19:13 -0700
committerpab <bigot@acm.org>2010-01-28 07:19:13 -0700
commit91d32c31f2ea529fde52107bb505651031a525e7 (patch)
tree10c1f6288dfbe41cdff348ae33802922a9e477a8
parentbedd49fa0a3d6519772e7e6f7f62cdf1745bb0aa (diff)
Eliminate dependence on OpenGIS for reproduction
-rw-r--r--tests/trac/trac-0073/base.xsd9
-rw-r--r--tests/trac/trac-0073/check.py4
-rw-r--r--tests/trac/trac-0073/profile.xsd14
-rwxr-xr-x[-rw-r--r--]tests/trac/trac-0073/test.sh7
4 files changed, 24 insertions, 10 deletions
diff --git a/tests/trac/trac-0073/base.xsd b/tests/trac/trac-0073/base.xsd
new file mode 100644
index 0000000..c1cfb2a
--- /dev/null
+++ b/tests/trac/trac-0073/base.xsd
@@ -0,0 +1,9 @@
+<xsd:schema targetNamespace="urn:trac-0073:base"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:base="urn:trac-0073:base"
+ elementFormDefault="qualified">
+ <xsd:attribute name="id" type="xsd:string"/>
+ <xsd:complexType name="DynamicFeatureType" abstract="true">
+ <xsd:attribute ref="base:id" use="optional"/>
+ </xsd:complexType>
+</xsd:schema>
diff --git a/tests/trac/trac-0073/check.py b/tests/trac/trac-0073/check.py
index 2b02d81..0dabba3 100644
--- a/tests/trac/trac-0073/check.py
+++ b/tests/trac/trac-0073/check.py
@@ -1,5 +1,5 @@
import profile
-import sys
-sys.exit(0)
+print "\n".join([str(_x) for _x in profile.AbstractFeatureBaseType._AttributeMap.keys() ])
+print id
diff --git a/tests/trac/trac-0073/profile.xsd b/tests/trac/trac-0073/profile.xsd
index fc4c344..7fde0c3 100644
--- a/tests/trac/trac-0073/profile.xsd
+++ b/tests/trac/trac-0073/profile.xsd
@@ -1,12 +1,12 @@
-<xsd:schema targetNamespace="urn:trac-0073:test"
+<xsd:schema targetNamespace="urn:trac-0073:profile"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:gml="http://www.opengis.net/gml/3.2"
- elementFormDefault="qualified" version="2.06">
- <xsd:import namespace="http://www.opengis.net/gml/3.2"/>
- <xsd:complexType name="AbstractAIXMFeatureBaseType" abstract="true">
+ xmlns:base="urn:trac-0073:base"
+ elementFormDefault="qualified">
+ <xsd:import namespace="urn:trac-0073:base"/>
+ <xsd:complexType name="AbstractFeatureBaseType" abstract="true">
<xsd:complexContent>
- <xsd:restriction base="gml:DynamicFeatureType">
- <xsd:attribute ref="gml:id" use="required"/>
+ <xsd:restriction base="base:DynamicFeatureType">
+ <xsd:attribute ref="base:id" use="required"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
diff --git a/tests/trac/trac-0073/test.sh b/tests/trac/trac-0073/test.sh
index df4b55c..6b6981d 100644..100755
--- a/tests/trac/trac-0073/test.sh
+++ b/tests/trac/trac-0073/test.sh
@@ -1,4 +1,9 @@
pyxbgen \
- --archive-path '&pyxb/bundles/opengis//:+' \
+ --archive-to-file base.wxs \
+ --schema-location base.xsd --module base
+
+pyxbgen \
+ --archive-path '.:+' \
--schema-location profile.xsd --module profile
+
python check.py