W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

xs:attribute with empty fixed value

From: Kriegesmann, Peter <Peter.Kriegesmann@softwareag.com>
Date: Tue, 29 Oct 2002 12:39:14 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106023724A8@daemsg02.software-ag.de>
To: xmlschema-dev@w3.org

Dear friends of the XML Schema,

I am not sure if this question has been asked before, at least I was not
able to find an appropriate answer.

Here are my questions:

1. Is it possible to enforce an attribute to have an empty value in all xml
documents when using the following definition in my XML schema:

	<xs:attribute name="emptyOne" type="xs:string" fixed=""/>

2. Additionally: Is it equal to:

	  <xs:attribute name = "emptyOne">
		      <xs:restriction base = "xs:string">
		       	<xs:length value = "0"/>
	  </xs:attribute>  ?

Thank you for your help,

Best regards,

Peter Kriegesmann
Phone	 06151-921484
Electronic Business Technologies (QE)				Fax
Software AG
Uhlandstrasse 12				
D-64297 Darmstadt
Received on Tuesday, 29 October 2002 06:39:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC