- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 05 Dec 2006 23:54:08 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4036
Summary: lang() function: usage of hyphen "-"
Product: XPath / XQuery / XSLT
Version: Proposed Recommendation
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Functions and Operators
AssignedTo: ashok.malhotra@oracle.com
ReportedBy: fsasaki@w3.org
QAContact: public-qt-comments@w3.org
Hello,
http://www.w3.org/TR/2006/PR-xpath-functions-20061121/#func-lang needs two
changes:
- editorial: "or if the string-value of the relevant testlang attribute
contains a hyphen" should be "or if the string-value of the relevant xml:lang
attribute contains a hyphen"
- non-editorial: The text
((Otherwise, the function returns true if and only if the string-value of the
relevant xml:lang attribute is equal to $testlang based on a caseless default
match as specified in section 3.13 of [The Unicode Standard], or if the
string-value of the relevant testlang attribute contains a hyphen, "-" (The
character "-" is HYPHEN-MINUS, #x002D) such that the part of the string-value
preceding that hyphen is equal to $testlang, using caseless matching.))
Looks like as if there could be only one hyphen in a language tag, but there
can be several ones, e.g. "de-de-1997". $testlang as "de" matches both "de-de"
and "de-de-1997". My proposal for a clarification: change the text to
((Otherwise, the function returns true if and only if the string-value of
the relevant xml:lang attribute is equal to $testlang based on a caseless
default match as specified in section 3.13 of [The Unicode Standard], or
if the string-value of the relevant xml:lang attribute contains on or more
hyphens, "-" (The character "-" is HYPHEN-MINUS, #x002D) such that a part
of the string-value from the first character until one of the hyphens is
equal to $testlang, using caseless matching.))
and add an example like <para xml:lang="de-de-1997"/> with several hyphens.
Felix
Received on Tuesday, 5 December 2006 23:54:18 UTC