{ Frameless }

data-text

The data-text attribute takes text and or an XPath query as input. The value of the attribute replaces the contents of the element.

<li data-text="Inbox ({count(mail[@unread='true'])})">?</li>

Will return

<li>Inbox (8)</li>
If the query returns 8 unread e-mails