W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2004

[F&O] fn:local-name-from-QName should be renamed local-part-from-QName

From: Per Bothner <per@bothner.com>
Date: Wed, 22 Dec 2004 18:43:06 -0800
Message-ID: <41CA30BA.2080206@bothner.com>
To: public-qt-comments@w3.org

I noticed some incompatibility between the name "local-name"
and the JAXP (Java) method names getLocalPart vs getLocalName.

The F&O method local-name-from-QName corresponds to the
JAXP methods QName.getLocalPart.

I think the phrase "local-part" is more precise, since it doesn't
make sense to get the "local name" of a name - you get the
local *part* of a name.  Plus of course it's nice to have
consistency between the XQuery API and the Java API.

The fn:local-name corresponds to the DOM method getLocalName.
That makes sense: the local name of a node is
the local part of the QName of a node.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/
Received on Thursday, 23 December 2004 02:45:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT