- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 05 May 2000 09:07:59 +0100
- To: Jane Hunter <jane@dstc.edu.au>
- Cc: www-xml-schema-comments@w3.org
Jane Hunter <jane@dstc.edu.au> writes: > We're using XML Schema within MPEG-7 to define descriptions of audiovisual > cotent. Certain descriptive elements have a language attribute. For > consistency, we'd like to use the xml:lang attribute. > > Does this need to be declared like any other attribute for the elements to > which it applies? For example: > > <complexType name="FrameAnnotation"> > <element name="Who" type="string" minOccurs="0"/> > <element name="What" type="string" minOccurs="0"/> > .... > <attribute ref="xml:lang"/> > </complexType> > > I assume that we also need to import the xml namespace? > If so, where is this located? There is an example of this in the schema for schemas [1] itself, which also uses xml:lang. Short answer, it's at the XML namespace URI, i.e. http://www.w3.org/XML/1998/namespace ht [1] http://www.w3.org/1999/XMLSchema.xsd -- 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 Friday, 5 May 2000 04:19:01 UTC