Metreeca Gear
    Preparing search index...

    Function string

    • Reads a selected value as text.

      Takes the text a value is written as, as the XPath string() function converts it: the value of an attribute, the character data held by the tree rooted at any other node, the comments within it contributing none, and the written form of a computed string, number or boolean.

      Parameters

      • node: Target

        The Target to read, either a node a selection reached or a value an expression computed

      Returns string

      The text node is written as, with every run of whitespace replaced by a single space and the outer whitespace dropped, so that content laid out across several lines reads as the evenly spaced text a label expects