W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

error in specifications?

From: Forge <forge@neonics.com>
Date: Wed, 28 Mar 2001 17:40:35 +0000 (UTC)
To: xmlschema-dev@w3.org
Message-ID: <Pine.LNX.4.21.0103281736080.531-100000@fire>

Hi there,

I checked the xml specs and it says:

  abstract = boolean : false
  block = (#all | List of (extension | restriction)) 
  final = (#all | List of (extension | restriction)) 
  id = ID 
  mixed = boolean : false
  name = NCName 
  {any attributes with non-schema namespace . . .}>
  Content: (annotation?, (simpleContent | complexContent | ((group | all |
choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?))))

Which means to me that the following is valid:

<xsd:complexType name="bla">
    <xsd:restriction ....>
  <xsd:attribute name="..."/>

However, XMLSpy does not think so.. 

Then I found this example:

<xs:complexType name="length1">
  <xs:extension base="xs:non-negative-integer">
   <xs:attribute name="unit" type="xs:NMTOKEN"/>

Is XMLSpy wrong?


I just wish to declare a tag like  <blah blah="blah">blah</blah>

This is not possible with an anonymous complexType definition. How come?

What I would like to do is:

<element name="blah" type="xsd:string">
    <xsd:attribute ...>

but this is not possible if element is not below the root node (haven't
tested it when it's below the root node, however..)

Any clarifications on this?

Thanks a lot!
Received on Wednesday, 28 March 2001 10:32:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC