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

Re: error in specifications?

From: Asir S Vedamuthu <asirv@webmethods.com>
Date: Wed, 28 Mar 2001 10:59:28 -0500
Message-ID: <004a01c0b7a0$11eeffe0$0846010a@webmethods.com>
To: "Forge" <forge@neonics.com>, <xmlschema-dev@w3.org>
> I just wish to declare a tag like  <blah blah="blah">blah</blah>
> 
> This is not possible with an anonymous complexType definition. How come?

Nope, it is possible to ..
 
> What I would like to do is:
> 
> <element name="blah" type="xsd:string">
>   <complexType>
>     <xsd:attribute ...>
>   </complexType>
> </element>

Here it is

<element name="blah">
    <complexType>
        <simpleContent>
            <extension base="string">
                <attribute name="blah" type="string"/>
            </extension>
        </simpleContent>
    </complexType>
</element>

- Asir
Received on Wednesday, 28 March 2001 10:59:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT