Hi Tushar,

>       <attribute name = "mustUnderstand" use = "optional">
>               <simpleType>
>                       <restriction base = "boolean">
>                               <pattern value = "0|1"/>
>                       </restriction>
>               </simpleType>
>       </attribute>
>       <attribute name = "actor" use = "optional" type = "anyURI"/>

Top-level attribute declarations(i.e. global,having <schema> element as 
parent), 
cannot have 'use' attribute.

You can refer to http://www.w3.org/TR/xmlschema-1/ for further clarification.
Here's the code snippet of the schema for schema file :

<xs:complexType name="topLevelAttribute">
                <xs:complexContent>
                 <xs:restriction base="xs:attribute">
                  <xs:sequence>
                   <xs:element ref="xs:annotation" minOccurs="0"/>
                   <xs:element name="simpleType" minOccurs="0"
                                                   type="xs:localSimpleType"/>
                  </xs:sequence>
                  <xs:attribute name="ref" use="prohibited"/>
                  <xs:attribute name="form" use="prohibited"/>
                  <xs:attribute name="use" use="prohibited"/>
                  <xs:attribute name="name" use="required" type="xs:NCName"/>
                 </xs:restriction>
                </xs:complexContent>
               </xs:complexType>


The 'use' attribute's use is prohibited for top-level attributes.


regards,
Pavani

> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: constraint 3.x.3: Attribute 'use' cannot appear in element 'attri 
bute'
> Date: Tue, 21 Aug 2001 16:43:19 -0400
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 


-- 

Pavani Mukthipudi
Sun Microsystems


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to