- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 19 May 2005 20:07:26 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1472 Summary: [FO] fn:lang: signature should allow empty sequence Product: XPath / XQuery / XSLT Version: Last Call drafts Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Functions and Operators AssignedTo: ashok.malhotra@oracle.com ReportedBy: mrys@microsoft.com QAContact: public-qt-comments@w3.org BugsThisDependsOn: 1467 Since the node argument is often calculated, we should allow empty: fn:lang($testlang as xs:string?, $node as node()?) as xs:boolean? Summary: This function tests whether the language of $node, or the context node if the second argument is omitted, as specified by xml:lang attributes is the same as, or is a sublanguage of, the language specified by $testlang. The language of the argument node, or the context node if the second argument is omitted, is determined by the value of the xml:lang attribute on the node, or, if the node has no such attribute, by the value of the xml:lang attribute on the nearest ancestor of the node that has an xml:lang attribute. If there is no such ancestor, then the function returns false If the second argument is the empty sequence, the function returns the empty sequence. If the second argument is omitted and the context item is undefined an error is raised: [err:FONC0001]. If the context item is not a node an error is raised [err:XPTY0006]XP.
Received on Thursday, 19 May 2005 20:07:34 UTC