W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2000

Re: element declaration

From: Goetz Bock <bock@blacknet.de>
Date: Fri, 3 Nov 2000 20:34:47 +0100
To: xmlschema-dev@w3.org
Message-ID: <20001103203447.A1730@titan.blacknet.de>

On Fri, Nov 03 '00 at 18:11, Steffen Stundzig wrote:
 
> <myelement myattr1="value1">2000/11/03</myelement>
> 
> How must look a Schemadefinition for this? 
 
What about:

<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">

<xsd:element name="myelement">
  <xsd:complexType>
    <xsd:simpleContent>
      <xsd:extension base="xsd:date">
        <xsd:attribute name="myattr1" type="xsd:string"/>
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>
</xsd:element>

</xsd:schema>

Cu,
    Goetz.
Received on Friday, 3 November 2000 14:35:35 GMT

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