Tooltip Helper for the XPath Functions Arguments
When editing the arguments of an XPath/XSLT function, Oxygen XML Developer Eclipse plugin tracks the current entered argument by displaying a tooltip containing the function signature. The currently edited argument is highlighted with a bolder font.
When moving the cursor through the expression, the tooltip is updated to reflect the argument found at the cursor position.
Examples:
<xsl:template match="/">
<xsl:value-of select="concat(abs($v1), abs($v2))"></xsl:value-of>
</xsl:template>
abs
function, Oxygen XML Developer Eclipse plugin
identifies it as the first argument of the concat
function. The tooltip shows
in bold font the following information about the first argument:- Its name is
$arg1
. - Its type is
xdt:anyAtomicType
. - It is optional (note the
?
sign after the argument type).
The function also takes other arguments that have the same type and returns a
xs:string
.
Moving the cursor on the first variable $v1
, the editor identifies the
abs
as context function and shows its signature:
Further, clicking the second abs
function name, the editor detects that it
represents the second argument of the concat
function. The tooltip is
repainted to display the second argument in bold font.