[eml-dev] EML-2.1.0 Release Candidate-1 -- not valid

inigo isangil at lternet.edu
Mon Apr 14 14:30:26 PDT 2008



Margaret,

test concluded that -not valid-  but fear not, i remember now this 
particular problem.

-- it is a case of sloppy nesting --

to FIX it: all you have to do is  ..  in "eml.xsd" :

-- close the <doc:moduleDocs> element before the <doc:module> elements 
begin.

that is :  move the </doc:moduleDocs> from its current location to right 
after the
<doc:standAlone>yes</doc:standAlone>

What is going on is that the definition of moduleDocs in the 
documentation.xsd
does not contemplate more children that the four used there (moduleName,
moduleDescription, recommendedUsage and standAlone). In eml.xsd, someone
forgot to close moduleDocs before opening the many instances of doc:module.
It happens.

And to save you some trouble, (the next iteration) I did the change with 
your
schema, (and the new documentation.xsd) and it passed the test. It could 
have
passed it with the previous documentation.xsd, Im not sure -  I 
overwrote it.

So, with this change, it is XMLSpy latest version approved, and we are 
good to go.

cheers,
Inigo


Margaret O'Brien wrote:
> Hi Inigo -
> I appreciate the work you did testing for these errors in spy2008. The 
> latest copy I can get ahold of is 2007, which agrees with the 
> validator at the W3C (http://www.w3.org/2001/03/webdata/xsv), that RC1 
> is a valid schema.  I made a few changes to the eml-documentation.xsd, 
> which I am attaching here. Can you do me the favor of trying this out 
> in your spy2008?  I want to be sure it works before I tag another rc. 
> My fix: It looked like spy was objecting to the repeated occurences of 
> <doc:module>, so I added a complexType whose elements referenced the 
> remanining globals, set cardinality = 0..many, and wrapped them in 
> sequence/choice to allow any them to appear in any combinations.
>
> This fix applies to bug 2703, again -- here is what has been going on: 
> You may have noticed that all the error reports are from the 
> "xs:documentation" sections of EML schema components. The content model
> for xs:documentation (and also for appinfo) is a wildcard, which by 
> default is processed with lax validation. If the processor can find 
> appropriate element declarations, it should use those instead. But to 
> make it unpredictable, processors are not required to perform the 
> schemas imports until they absolutely need to. So up until ~2005 was 
> processors probably did not bother to look at documentation.xsd, and 
> so the contents of <annotation> were checked only for well-formedness. 
> Fast-forward: processors get smarter, they might actually look at the 
> imported schemas, validated against them and spot errors. While 
> xmlSpy2008 happens to be ahead of the w3c in applying standards, they 
> still may not be catching everything.
>
> EML 2.0.x schemas were created according to the best recommendations 
> available for documentation and the same examples are still being 
> referenced in the literature today. All the changes I've made to 
> eml-documentation.xsd have further defined these elements to match the 
> way they were used by the original schema authors - and I hope, to 
> maintain flexibility for the future. Given that processors may or may 
> not load schema compoents, we cannot completely rely on their error 
> reports - and so our only defense in anticipating errors is our own 
> knowledge of schema construction. I would really like another person 
> to look over the changes to documentation.xsd and the use of its 
> elements in the other components for some requirement that I may have 
> missed.
>
> FYI, you can find info about XSV development on its author's home 
> page: http://www.ltg.ed.ac.uk/~ht/xsv-status.html, 
> http://www.ltg.ed.ac.uk/~ht/ . Altova (understandably) plays its hand 
> close, and so I havent run into any specifics on their implementation. 
> OxygenXML can validate using XSV as a plugin. And btw - OxygenXML is 
> FREE to anyone trying to make the world a better place: 
> http://www.oxygenxml.com/support_life.html (yes, this is a plug for 
> oxygen).
>
> Inigo - I did not address your entire list of changes (detailed in 
> your email of 2/27), although I did mention in the bug notes which 
> ones were applied and why. This note is long enough, and so I will do 
> that later
> today or tomorrow. Again, thanks for your willingness to be the tester 
> for spy.latest-version. If we need to get on vtc while you do that - 
> no problem - I'm at my desk today/tommorow.
>
> Cheers -
> Margaret
>
> i

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eml.xsd
Type: text/xml
Size: 19429 bytes
Desc: not available
Url : http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20080414/09f0f666/eml-0001.xml


More information about the Eml-dev mailing list