xs:attribute with empty fixed value

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:simpleType>
		      <xs:restriction base = "xs:string">
		       	<xs:length value = "0"/>
		      </xs:restriction>
		</xs:simpleType>
	  </xs:attribute>  ?


Thank you for your help,

Best regards,
Peter

Peter Kriegesmann
Phone	 06151-921484
Electronic Business Technologies (QE)				Fax
06151-921612
			
Software AG
http://www.softwareag.com
Uhlandstrasse 12				
D-64297 Darmstadt
mailto:Peter.Kriegesmann@softwareag.com	

Received on Tuesday, 29 October 2002 06:39:22 UTC