Re: [Moderator Action] facets not allowed when derivedBy is list

Norbert Eisinger <Norbert.Eisinger@informatik.uni-muenchen.de> writes:

> Please find attached a small XML schema constructed in analogy to 
> the simple type "List Type for Six US States" in XML Schema Part 0. 
> 
> XSV 1.145/1.61 of 2000/06/27 09:25:51 reports
> em.xsd:56:4: Warning: facets not allowed when derivedBy is list
> 
> I must admit that I am not sure whether my schema is correct, but 
> I think that the length facet in a type derived by list is allowed.
> 
> The example is in German. When I wrote it I did not expect that I might 
> distribute it abroad. The structure of the schema ought to be simple 
> enough even if you don't understand the contents. And please forgive me, 
> should the name of your country be used unfavourably in the example :-)
> 
> Yours sincerely,
> Norbert Eisinger
> 
> <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
> 
> <Europameisterschaft>
> 
>    <GruppeA>Deutschland England Liechtenstein Vatikan</GruppeA>
> 
>    <GruppeB>Albanien Andorra Estland Luxemburg</GruppeB>
> 
>    <GruppeC>Belgien Färöer Weißrussland Zypern</GruppeC>
> 
>    <GruppeD>Malta Moldawien Österreich SanMarino</GruppeD>
> 
>    <Viertelfinale>
>       Estland Färöer Liechtenstein Luxemburg Moldawien SanMarino Vatikan Zypern
>    </Viertelfinale>
> 
>    <Halbfinale>
>       Estland Luxemburg Moldawien SanMarino
>    </Halbfinale>
> 
>    <Finale>
>       Luxemburg SanMarino
>    </Finale>
> 
> </Europameisterschaft>
> 
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> 
> <schema xmlns                = "http://www.w3.org/1999/XMLSchema"
>         xmlns:em             = "http://www.pms.informatik.uni-muenchen.de/EM"
>         targetNamespace      = "http://www.pms.informatik.uni-muenchen.de/EM"
>         elementFormDefault   = "unqualified">
> 
> 
>    <annotation>
>       <documentation>
>          XML Schema für Europameisterschaft (Übungsaufgabe)
>       </documentation>
>    </annotation>
> 
> 
>    <element name="Europameisterschaft"  type="em:TypEuropameisterschaft" />
> 
> 
>    <complexType name="TypEuropameisterschaft">
>       <element  name="GruppeA"          type="em:TypListe4Länder" />
>       <element  name="GruppeB"          type="em:TypListe4Länder" />
>       <element  name="GruppeC"          type="em:TypListe4Länder" />
>       <element  name="GruppeD"          type="em:TypListe4Länder" />
>       <element  name="Viertelfinale"    type="em:TypListe8Länder" />
>       <element  name="Halbfinale"       type="em:TypListe4Länder" />
>       <element  name="Finale"           type="em:TypListe2Länder" />
>    </complexType>
> 
> 
>    <simpleType  name="TypLand"          base="string">
>       <enumeration                      value="Albanien"      />
>       <enumeration                      value="Andorra"       />
>       <enumeration                      value="Belgien"       />
>       <enumeration                      value="Deutschland"   />
>       <enumeration                      value="England"       />
>       <enumeration                      value="Estland"       />
>       <enumeration                      value="Färöer"        />
>       <enumeration                      value="Frankreich"    />
>       <enumeration                      value="Italien"       />
>       <enumeration                      value="Liechtenstein" />
>       <enumeration                      value="Luxemburg"     />
>       <enumeration                      value="Malta"         />
>       <enumeration                      value="Moldawien"     />
>       <enumeration                      value="Niederlande"   />
>       <enumeration                      value="Österreich"    />
>       <enumeration                      value="Polen"         />
>       <enumeration                      value="SanMarino"     />
>       <enumeration                      value="Schweiz"       />
>       <enumeration                      value="Vatikan"       />
>       <enumeration                      value="Weißrussland"  />
>       <enumeration                      value="Zypern"        />
>                   <!-- und so weiter -->
>    </simpleType>
> 
> 
>    <simpleType  name="TypListe2Länder"  base="em:TypLand"  derivedBy="list" >
>       <length value="2" />
>    </simpleType>
> 
> 
>    <simpleType  name="TypListe4Länder"  base="em:TypLand"  derivedBy="list" >
>       <length value="4" />
>    </simpleType>
> 
> 
>    <simpleType  name="TypListe8Länder"  base="em:TypLand"  derivedBy="list" >
>       <length value="8" />
>    </simpleType>
> 
> 
> </schema>

I think you're right and this is a bug in XSV -- will confirm
tomorrow.

ht

PS Please subscribe to the list.
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Wednesday, 28 June 2000 16:46:06 UTC