Validating GML, and using XPath
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Validating GML, and using XPath
Post by Andrew L »
I have two questions.
1. The GML (Geographic Markup Language) schema never wants to correctly validate. Why is this? The following errors occur in the applcation .xsd file:
Location: 21:70
Description: E src-resolve: Cannot resolve the name 'gml:geometryPropertyType' to a(n) 'type definition' component.
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve
and in the OpenGIS reference schema geometry.xsd the following two errors appear 3 times (one each for MultiPolygonType, MultiLineStringType and MultiPointType)
Location: 297:40
Description: E rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
Location: 297:40
Description: E derivation-ok-restriction.5.4.2: Error for type 'MultiPolygonType'. The particle of the type is not a valid restriction of the particle of the base.
URL: http://www.w3.org/TR/xmlschema-1/#deriv ... estriction
2. Whenever I try to specify an XPath in this document I receive a message saying XPath returned no results. Queries I have used include //FeatureCollection and //FeatureCollection/gml:featureMember
<?xml version="1.0" encoding="UTF-8"?>
<FeatureCollection xmlns="http://mydomain/schemas"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xsi:schemaLocation="http://mydomain/schemas event3.xsd">
<gml:boundedBy><gml:Box><gml:coordinates>100,100,100,100</gml:coordinates></gml:Box></gml:boundedBy>
<gml:featureMember>
<event>
<geometryProperty>
<gml:Point>
<gml:coordinates>100,100</gml:coordinates>
</gml:Point>
</geometryProperty>
<siteCode>AL1234</siteCode>
<date>2004-10-10</date>
<locationDescription>Somewhere</locationDescription>
<eventType>Excavation</eventType>
<period>Roman</period>
</event>
</gml:featureMember>
</FeatureCollection>
If anyone can help, I'd be very grateful.
Many thanks
Andrew L
Sysinfo:
oXygen 3.0
Xerces-J 2.6.0
Xalan Java 2.5.1
JVM IBM 1.4.1
Mandrake Linux 9 w/2.4.21 kernel
1. The GML (Geographic Markup Language) schema never wants to correctly validate. Why is this? The following errors occur in the applcation .xsd file:
Location: 21:70
Description: E src-resolve: Cannot resolve the name 'gml:geometryPropertyType' to a(n) 'type definition' component.
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve
and in the OpenGIS reference schema geometry.xsd the following two errors appear 3 times (one each for MultiPolygonType, MultiLineStringType and MultiPointType)
Location: 297:40
Description: E rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
Location: 297:40
Description: E derivation-ok-restriction.5.4.2: Error for type 'MultiPolygonType'. The particle of the type is not a valid restriction of the particle of the base.
URL: http://www.w3.org/TR/xmlschema-1/#deriv ... estriction
2. Whenever I try to specify an XPath in this document I receive a message saying XPath returned no results. Queries I have used include //FeatureCollection and //FeatureCollection/gml:featureMember
<?xml version="1.0" encoding="UTF-8"?>
<FeatureCollection xmlns="http://mydomain/schemas"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xsi:schemaLocation="http://mydomain/schemas event3.xsd">
<gml:boundedBy><gml:Box><gml:coordinates>100,100,100,100</gml:coordinates></gml:Box></gml:boundedBy>
<gml:featureMember>
<event>
<geometryProperty>
<gml:Point>
<gml:coordinates>100,100</gml:coordinates>
</gml:Point>
</geometryProperty>
<siteCode>AL1234</siteCode>
<date>2004-10-10</date>
<locationDescription>Somewhere</locationDescription>
<eventType>Excavation</eventType>
<period>Roman</period>
</event>
</gml:featureMember>
</FeatureCollection>
If anyone can help, I'd be very grateful.
Many thanks
Andrew L
Sysinfo:
oXygen 3.0
Xerces-J 2.6.0
Xalan Java 2.5.1
JVM IBM 1.4.1
Mandrake Linux 9 w/2.4.21 kernel
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Andrew,
1. There are more versions of GML. Please point us to the URLs for the two schemas you mention.
2. When you say //FeatureCollection that means you are referring to the FeatureCollection element from no namespace. In your document the FeatureCollection belongs to "http://mydomain/schemas" namespace.
See http://www.oxygenxml.com/pipermail/oxyg ... 00179.html for more details about this type of problems.
Best Regards,
George
1. There are more versions of GML. Please point us to the URLs for the two schemas you mention.
2. When you say //FeatureCollection that means you are referring to the FeatureCollection element from no namespace. In your document the FeatureCollection belongs to "http://mydomain/schemas" namespace.
See http://www.oxygenxml.com/pipermail/oxyg ... 00179.html for more details about this type of problems.
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service