Tritium is a simple scripting language for efficiently transforming structured data like HTML, XML, and JSON.
Tritium was designed by Hampton Catlin, the creator of languages Sass and Haml and is currently bundled with the Moovweb mobile platform.
Like jQuery, idiomatic Tritium code is structured around selecting a collection of elements via a CSS or XPath selector and then chaining a series of operations on them.
[5] For example, the following script will select all the HTML table elements with id of foo and change their width attributes to 100%.
For example, the above code rewritten to use the equivalent XPath selector would be: Both Tritium and XSLT are designed for transforming data.