[ome-users] STD.xsd - is this a bug?

Graham Klyne Graham.Klyne at zoo.ox.ac.uk
Fri Jul 22 15:32:31 BST 2005


I'm looking at the following fragments in STD.xsd, and can't make sense of 
them:

[[
                 <unique name = "SemanticElement">
                         <selector xpath = "STD:SemanticElement"/>
                         <field xpath = "@Name"/>
                 </unique>
]]

[[
                 <keyref name = "FieldIDref" refer = "STD:FieldID">
                         <selector xpath = ".//STD:SemanticElement"/>
                         <field xpath = "@FieldID"/>
                 </keyref>
]]

In particular, by my understanding, the selector child elements match 
(select) elements named STD:SemanticElement in an instance document.  But 
the schema does not, as I read it, allow for any such elements.  The only 
definition of name SemanticElement in the schema is as the name of the 
<unique> element quoted above.  I don't see how this can legitimately be 
the target of an xpath expression.

I'm not expert in the finer points of XML schema incantations, so I could 
be missing something here,

#g


---
Graham Klyne
Image Bioinformatics Research Group (http://www.bioimage.org/)
Department of Zoology, University of Oxford
South Parks Road, Oxford OX1 3PS, UK
E-mail: <Graham.Klyne at zoo.ox.ac.uk>
Direct phone: +44-(0)1865-281991
Departmental fax: +44-(0)1865-310447




More information about the ome-users mailing list