( Simple demo )
XQuery is now directly accessible to OS X 10.10 scripting.
It provides a very flexible way of generating grouped and sub-grouped reports across a set of text files in HTML OPML or other XML formats, either generated automatically through a Hazel process from tagged MD or TaskPaper files, or as the native format of a preferred outlining and tagging application.
Installation and use
Copy the sample OPML files in SampleFolder to a folder on your system,
launch Brett Terpstra's Marked 2,
and run the QueryAFolderOfOPMLFiles script.
When the script throws up a
choose folder dialog, choose the folder containing the set of tagged OPML files
( These files could be exported from FoldingText @key(value) MD, or from OO3 columnar outlines, perhaps automatically by something like Hazel )
You will be offered a menu of custom perspectives, defined in the syntax of OS X 10.10's native NSXML XQuery 1.0.
The results will be displayed in Marked 2.