added LogEntry support to Elements, so that triggerd rules can be logged in the database
added rule for xhtml