I don\'t really understand the difference between the XPath functions name and local-name.
Could you give an example of a situation where they would differ?
With the XML being
the stylesheet
outputs
html x:html
So the local-name() result is without any prefix, the name() result might include a prefix.
local-name()
the name()
In your sample with a default namespace declaration no prefix is present, therefore name() and local-name() give the same result.
name()