Returns the value of a service attribute with the specified name attached to the specified element. (See also below: What are Service Attributes?)
If the element has no service attribute with that name associated with it,
the function will return null
.
However, null
can be also a legitimate value of a service attribute.
To distinguish between two situations, use hasServiceAttr()
function.
Parameters:
element
getServiceAttr(contextElement, attrName)
attrName
null
,
if no service attribute with the specified name is attached to the specified element.
hasServiceAttr(), setServiceAttr()
${include ../../../refs/service_attrs.htm}