SPFE Documentation | Collections > SPFE Function Reference > name-in-clark-notation

Function: name-in-clark-notation

name-in-clark-notation(element as item()*) as item()*

Description

Returns the name of an element using Clark notation. Clark notation is a way of adding the namespace that an element belongs to its name. It consists of the namespace URI in curly braces prepended to the local name (without prefix).

Return value

Return type: item()*

The name of the element in Clark notation.

Source file

$SPFEOT_HOME/1.0/scripts/common/utility-functions.xsl

Parameters

element

Type: item()*

The element whose name it to be given in Clark notation. Note that the parameter value must be the element itself, not an element name.

Definition

            <xsl:function name="sf:name-in-clark-notation">
		               <xsl:param name="element"/>
		               <xsl:value-of select="concat('{', namespace-uri($element), '}', local-name($element))"/>
	           </xsl:function>