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:element ref="productName" />
	<xs:element ref="quantity" />
	<xs:element ref="price" />
	<xs:element ref="shipDate" minOccurs="0" />

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

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 ?


Siemens AG
I&S IT PS 41
Dr. Manfred Wagner
Received on Wednesday, 12 December 2001 13:43:53 UTC

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