OGC Public Forum : Forum Index OGC Public Forum :
Helping the world to communicate geographically...
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   DigestsDigests   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XMLSpy Validation Issue of GeometryObservation

 
Post new topic   Reply to topic    OGC Public Forum : Forum Index -> O&M: Observations and Measurements
View previous topic :: View next topic  
Author Message
shawnhermans



Joined: 11 Mar 2009
Posts: 1

PostPosted: Wed Mar 11, 2009 10:07 pm    Post subject: XMLSpy Validation Issue of GeometryObservation Reply with quote

Our group is looking at O&M and are evaluating an approach that restricts the result type (and other parts of the observation) to our specific types. As a starting point, we looked out the following schema. In XMLSpy we get multiple validation errors. One of the validation errors is that the type given for a om:result is an invalid restriction of xs:any. Did you run into these problems when creating this schema?

I understand the alternative is to use Schematron rules, but our the development team is leaning against that. We are trying to find someone of restricting the observation using only XML Schema.

-Shawn Hermans
Back to top
View user's profile Send private message
kevin
Site Admin


Joined: 05 Nov 2003
Posts: 51
Location: Indiana, USA

PostPosted: Fri Mar 13, 2009 11:35 am    Post subject: Reply with quote

This from the O&M editor...

A quirk or feature of XML Schema is that it is not possible to do type restrictions across namespace boundaries.
The declaration of the 'result' element in the observation schema follows the rules for GML Application Schemas, so is 'local' to the om:ObservationType.
When you try to define a derivation in another namespace, therefore, it is not possible to restrict the content model of locally declared elements.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OGC Public Forum : Forum Index -> O&M: Observations and Measurements All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


OGC® websites: OGC Home | OGC Network™ | OGC User™ | ORM | OGC Forum | OGC Schemas

OGC Policies | Change Request

Powered by phpBB © 2001, 2005 phpBB Group