What is the best way to pass operational attributes to an ECMAScript
function? For example, I want to pass the operational attribute "Given
Name" to my function. Currently, I'm assigning it to a local var and then
passing that var: es:myfunc($mylocalvar). That seems redundant to have to
assign it to a local var first. How can I pass the Given Name in this
example right to the function? Do I need to use XPath to do it ( like
es:myfunc(./add-attr[@attr-name='Given Name']/value) )? Or is there a
simpler method?