Class Lang

All Implemented Interfaces:
Callable, FunctionItem, GroundedValue, Item, Sequence

public class Lang extends SystemFunction
  • Constructor Details

    • Lang

      public Lang()
  • Method Details

    • isLang

      public static boolean isLang(String arglang, NodeInfo target)
      Test whether the context node has the given language attribute
      Parameters:
      arglang - the language being tested
      target - the target node
      Returns:
      true if the node is tagged with this language code
    • call

      public BooleanValue call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as SequenceIterators
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression