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

Re: New attributes in element

From: Wagner Manfred <manfred.wagner@siemens.com>
Date: Wed, 12 Dec 2001 10:16:57 -0500 (EST)
Message-ID: <19371384ACA1D3118CD300508B63AD690332D8AB@ERLM587A.erl9.siemens.de>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi All,

starting to investigate XML-Schema I have read this question and the
corresponding answer.

But the answer implies an example as follows:

<?xml version="1.0" encoding="UTF-8" ?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="www.my.com"
>

  <xs:element name="item">
    <xs:complexType>
      <xs:sequence>
	<xs:element ref="productName" />
	<xs:element ref="quantity" />
	<xs:element ref="price" />
	<xs:element ref="shipDate" minOccurs="0" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="productName" />
  <xs:element name="quantity" />
  <xs:element name="price" />
  <xs:element name="shipDate" my:display ="Name"/>
</xs:schema>

This causes the error (from SQC):
Attribute "my:display" is not allowed for element type "xs:element"

So I think it is not all what has to be done. My attempt to import the above
new namespace lead to some other problems.

could cou help ?

Regards
Manfred


-----------------------------------------------------------
Siemens AG
I&S IT PS 41
Dr. Manfred Wagner
Manfred.Wagner@siemens.com
----------------------------------------------------------------------------
------------------
Received on Wednesday, 12 December 2001 13:43:53 GMT

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