XML Tutorial/XSLT stylesheet/local name
Functions name, local-name, and namespace-uri() are used to get informations about element and attribute names and namespaces
<source lang="xml">
local-name()- Takes zero or one node-sets as its argument and returns the local part of the element name if it exists; if no argument node-set exists, it returns the local part of the name of the context node.
File: Data.xml <?xml version="1.0" encoding="utf-8"?>
<standard:id>standardAAA</standard:id> <standard:size>258</standard:size> <wbex:id>wbex1258</wbex:id>
File: Transform.xslt <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet
version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/">
name</TH>
<td>local</TH> <td>URI</TH> |
name</TH><td>local</TH><td>URI</TH> |