def __setitem__(self, key, value):
        """
        Add a file or block of text to the dictionary
        @param key: value key
        @param value: either a file or a block of xslt
        """
        if self.is_xslt(value) or os.path.isfile(value):
            super(XSLTLibrary, self).__setitem__(key, value)
        else:
            raise ValueError("'%s' is neither XSLT nor the name of a file" % key)
def __setitem__ ( self , key , value ) : if self . is_xslt ( value ) or os . path . isfile ( value ) : super ( XSLTLibrary , self ) . __setitem__ ( key , value ) else : raise ValueError ( "'%s' is neither XSLT nor the name of a file" % key )
Add a file or block of text to the dictionary
        @param key: value key
        @param value: either a file or a block of xslt