- From: Marko Asplund <aspa@kronodoc.fi>
- Date: Wed, 17 Apr 2002 13:43:07 +0300 (EEST)
- To: Priscilla Walmsley <priscilla@walmsley.com>
- Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
On Tue, 16 Apr 2002, Priscilla Walmsley wrote: > I've seen this message before, when you are trying to restrict a simple > type to result in a complex type with simple content. For example, if the > type for one of your elements looks like: > > ... > It should really be: > > <xs:element name="EXT"> > <xs:simpleType> > <xs:restriction base="xs:integer"> > <xs:minExclusive value="1"/> > </xs:restriction> > </xs:simpleType> > </xs:element> thanks very much for your answer. the above schema fragment seems to work but it misses an attribute declaration. the relevant part of the original schema is as follows: <xsd:element name = "EXT"> <xsd:complexType> <xsd:simpleContent> <xsd:restriction base = "xsd:string"> <xsd:maxLength value = "1024"/> <xsd:minLength value = "0"/> <xsd:attribute name = "IDREF" use = "required" type = "xsd:IDREF"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType> </xsd:element> how do i add the attribute declaration to your schema fragment? best regards, -- aspa
Received on Wednesday, 17 April 2002 06:43:47 UTC