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

Use of xml:lang versus xs:language

From: Mark Feblowitz <mfeblowitz@frictionless.com>
Date: Fri, 11 Jan 2002 13:59:08 -0500
Message-ID: <4DBDB4044ABED31183C000508BA0E97F024D56EA@fcpostal.frictionless.com>
To: "Xmlschema-Dev (E-mail)" <xmlschema-dev@w3.org>
Prompted by something that I saw in the Dublin Core discussion, I noticed
the definition of an attribute that is a reference to xml:lang.

If I intend to provide 0..unbounded Description elements, each with a
corresponding language attribute (reflecting the language of the
Description's text), I could represent it as:

	<xs:attribute ref="xml:lang"/>

or as 
	<xs:attribute name="lang" type="xs:language"/>

Is there any meaningful difference between the two? What are the relative
merits of each approach?

Thanks

Mark


----------------------------------------------------------------------------
----
 
Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
mfeblowitz@frictionless.com
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
www.frictionless.com  
 
Received on Friday, 11 January 2002 13:59:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT