- From: Wagner Manfred <manfred.wagner@siemens.com>
- Date: Wed, 12 Dec 2001 10:16:57 -0500 (EST)
- 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 UTC