W3C home > Mailing lists > Public > www-smil@w3.org > July to September 2004

An erratum for xml:lang

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Thu, 08 Jul 2004 22:47:39 +0900 (JST)
Message-Id: <20040708.224739.71102662.mimasa@w3.org>
To: www-smil@w3.org


Just in case you haven't noticed: "A.3.1 SMIL 2.0 common datatypes"
of SMIL 2.0 REC defined %LanguageCode.datatype; as follows [1]:

<!ENTITY % LanguageCode.datatype "NMTOKEN">
    <!-- a language code, as per [RFC1766] -->

"as per [RFC1766]" is out of date and should mention [RFC3066],
but also, XML 1.0 Second Edition allowed an empty xml:lang value
through an erratum [2] and it is now incorporated into the Third
Edition [3].  NMTOKEN cannot allow an empty string.

So in order to be consistent with the XML spec, the SMIL DTD needs to be
modified to use "CDATA" rather than "NMTOKEN" for %LanguageCode.datatype;.

You might also want to keep an eye on the ongoing revision to RFC 3066 [4].

[1] http://www.w3.org/TR/2001/REC-smil20-20010807/smil-DTD.html#smil-datatypes-1
[2] http://www.w3.org/XML/xml-V10-2e-errata#E41
[3] http://www.w3.org/TR/2004/REC-xml-20040204/#sec-lang-tag
[4] http://www.ietf.org/internet-drafts/draft-phillips-langtags-04.txt

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Thursday, 8 July 2004 09:47:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:24 UTC