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

The element whose service attribute is requested. If not specified, the generator context element is assumed by default, which is the same as the call: getServiceAttr(contextElement, attrName)
attrName
The name of the requested service attribute.
Returns:
The value of the service attribute or null, if no service attribute with the specified name is attached to the specified element.
See Also:

hasServiceAttr(), setServiceAttr() ${include ../../../refs/service_attrs.htm}