W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

Re: Who tests UPA?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 16 Sep 2004 09:40:35 +0100
To: "Xan Gregg" <Xan.Gregg@jmp.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bfz5ifvy4.fsf@erasmus.inf.ed.ac.uk>

"Xan Gregg" <Xan.Gregg@jmp.com> writes:

> Zafar Abbas of Microsoft pointed out to me that the CDISC ODM schema [1]
> I pointed to in a previous note contains a UPA violation.
>
>  <xs:sequence>
>   <xs:element ref="Study" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:element ref="AdminData" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:element ref="ReferenceData" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:element ref="ClinicalData" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:element ref="Association" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:element ref="ds:Signature" minOccurs="0" maxOccurs="unbounded"/>
>   <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
>  </xs:sequence>
>
> I hadn't noticed it and neither did any validator I tried. Apparently 
> some version of the Microsoft validator does catch the error.  I 
> tried Turbo XML, Xerces (via <oXygen>), XML Spy, Stylus Studio, 
> and XSV.  None complained.  (I take it if I tried the MS validator, 
> the license would prevent me from reporting the results anyway!)  

XSV reports an error if you ask it to check the schema (with the -i
switch).  XSV in its basic mode of operation, as used from the Web
form, just schema-validates documents.  The ODM schema document is a
valid schema document per the sForS.  Converted to a schema, it
violates UPA, but XSV doesn't check that until you use the schema to
validate with, or use the -i switch.

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 16 September 2004 08:40:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:06 UTC