Re: XML Schema Part 1-{any attributes with non-schema namespace}

"Zhangxiangli" <xianglizhang@precomtech.com> writes:

> Hello:
> 
> in 3.3.2 XML Representation of Element Declaration Schema Components
>  
> XML Representation Summary: element Element Information Item
> <element 
>   abstract = boolean : false
>   block = (#all | List of (extension | restriction | substitution)) 
>   default = string 
>   final = (#all | List of (extension | restriction)) 
>   fixed = string 
>   form = (qualified | unqualified)
>   id = ID 
>   maxOccurs = (nonNegativeInteger | unbounded)  : 1
>   minOccurs = nonNegativeInteger : 1
>   name = NCName 
>   nillable = boolean : false
>   ref = QName 
>   substitutionGroup = QName 
>   type = QName 
>   {any attributes with non-schema namespace . . .}>
>   Content: (annotation?, ((simpleType | complexType)?, (unique | key | keyref)*))
> </element>
> 
> I don't know exactly "{any attributes with non-schema namespace
> . . .}" means, does it mean that I can add any attribute not listed
> in element defination, is it validate to define a element as
> follows:
> 
> <element name="a" type="string" action="add"/>

No, it means what it says -- any attributes with non-schema namespace, 
so you _could_ have

  <element xmlns:annot="http://www.example.com/annotations"
           name="a" type="string" annot:action="add"/>

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Wednesday, 27 June 2001 03:34:51 UTC