Query plugin for getting a variable number of data attributes from an element