'Transform an element tree using this format
@param tree: the element tree
@param args: parameters for the stylesheet'

def transform(self, tree, **args):

    if (not self.tree):
        current.log.error('XMLFormat:    no    stylesheet    available')
        return tree
    return current.xml.transform(tree, self.tree, **args)
