problem with spatialReference

Chad Berkley berkley at nceas.ucsb.edu
Tue Sep 24 08:57:09 PDT 2002


Hi,

There is a problem with the way that eml-spatialReference.xsd uses
global elements.  Whenever one of the global elements (i.e. elements
that are direct children of the <xs:schema tag>) is referenced, the
instance document requires that the namespace prefix be used on the
element to make it validate.  If you want to see this in action, look at
the test/eml-spatialVector.xml file.  Go down to line 39 and remove the
namespace reference from <spref:azimuthMeasurePointLongitude> and then
run 'ant test'.  You will see that it no longer validates.  

This isn't really a problem except that it's inconvenient for users to
have to put the namespace references on those elements.  This problem
can be easily fixed by making the global elements complexTypes.  I think
we need to do that before rc2.  Peter, do you want to make the change? 
We can chat about it on IRC if you want.

chad

-- 
-----------------------
Chad Berkley
National Center for 
Ecological Analysis 
and Synthesis (NCEAS)
berkley at nceas.ucsb.edu
-----------------------




More information about the Eml-dev mailing list