Article ID: 291135 - Last Review: August 12, 2005 - Revision: 2.4 FIX: XPath Name Function with a Namespace Node Returns PrefixThis article was previously published under Q291135 On This PageSYMPTOMS
When applied to a namespace node, the XPATH name function returns the prefix (such as xmlns:) as part of the name, at the front of the name. In contrast, the local-name function does not return the prefix as part of the name of the namespace node. The name and local-name functions should return the same string when applied to a namespace node. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Microsoft XML 3.0 Service Pack 1. For additional information on other fixes included in Microsoft XML 3.0 Service Pack 1, click the article number below to view the article in the Microsoft Knowledge Base: 292935
(http://support.microsoft.com/kb/292935/EN-US/
)
INFO: List of Issues Fixed in Microsoft XML 3.0 Service Pack 1
For the latest information and downloads of MSXML, refer to the following MSDN Web site at:
http://msdn.microsoft.com/xml/default.asp
(http://msdn.microsoft.com/xml/default.asp)
MORE INFORMATION
The W3C XPath Specification, located at the following Web site
http://www.w3.org/TR/xpath#corelib
(http://www.w3.org/TR/xpath#corelib)
states:
"NOTE: The string returned by the name function will be the same as
the string returned by the local-name function, except for element nodes
and attribute nodes."
Because the namespace node is neither an element nor an attribute, the name and local-name functions should return the same string.
Steps to Reproduce Behavior
| Article Translations
|
Back to the top
