    # File temp/functions.rb, line 300
        def Functions::lang( language )
          lang = false
          node = @@context[:node]
          attr = nil
          until node.nil?
            if node.node_type == :element
              attr = node.attributes["xml:lang"]
              unless attr.nil?
                lang = compare_language(string(language), attr)
                break
              else
              end
            end
            node = node.parent
          end
          lang
        end