An erratum for xml:lang

Masayasu Ishikawa <[email protected]>
Newsgroups gmane.comp.web.smil
Organization W3C - World Wide Web Consortium
Message-ID <[email protected]>
Hi,

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

Regards,
-- 
Masayasu Ishikawa / [email protected]
W3C - World Wide Web Consortium
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.