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?



Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
Received on Friday, 11 January 2002 13:59:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC