W3C home > Mailing lists > Public > www-font@w3.org > October to December 2010

RE: i18n-ISSUE-2 (r12a): Why not using xml:lang? [WOFF]

From: Richard Ishida <ishida@w3.org>
Date: Thu, 9 Dec 2010 18:34:05 -0000
To: <www-font@w3.org>
Cc: <public-i18n-core@w3.org>
Message-ID: <006501cb97cf$a8e2c750$faa855f0$@org>
Just to add a little more detail behind why I ask the question...

xml:lang is part of XML itself, and the way the XML spec recommends to indicate language in XML.  (Note that it does not involve name space definitions.) 

One reason this is important is that XSLT has built-in functions that look for xml:lang to identify language information, and other XML processing tools also expect to find xml:lang for locating language info in XML.  

In addition, the inheritance behaviour of xml:lang is clearly defined in the XML spec in a way that is not the case for an arbitrary attribute.

See http://www.w3.org/TR/REC-xml/#sec-lang-tag

Hope that helps,

Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)


> -----Original Message-----
> From: public-i18n-core-request@w3.org [mailto:public-i18n-core-
> request@w3.org] On Behalf Of Richard Ishida
> Sent: 09 December 2010 12:18
> To: www-font@w3.org
> Cc: public-i18n-core@w3.org
> Subject: i18n-ISSUE-2 (r12a): Why not using xml:lang? [WOFF]
> I18n-ISSUE-2 (r12a): Why not using xml:lang? [WOFF]
> http://www.w3.org/International/track/issues/2
> Raised by: Richard Ishida
> On product: WOFF
> 6. Extended Metadata Block
> http://www.w3.org/TR/WOFF/#Metadata
> Substantive(?)
> WG approved?  No
> "The text elements MAY be given a lang attribute."
> Why are you inventing your own lang attribute, rather than using xml:lang for
> this?
Received on Thursday, 9 December 2010 18:34:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:35 UTC