Class Lang

    • Constructor Detail

      • Lang

        public Lang()
    • Method Detail

      • isLang

        public static boolean isLang​(java.lang.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