User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
transformation [2016/09/02 11:23]
admin created
transformation [2016/09/08 10:08]
Line 1: Line 1:
 ====== Transforming Tasklists with Stylesheets ====== ====== Transforming Tasklists with Stylesheets ======
 +Tasklists can be rendered in different ways by using a Transform process. The ToDoList XML file (the .tdl file) is exported in a similar but different XML format. That intermediate document is then put through an [[https://​​search?​q=xsl+transformation|XSL transformation]] using another file (called a stylesheet) with extension .XSL. So there is the source document, the transformation process, the XSL that describes what to do, and the result is a final transformed document.
 +The most common transformation is to convert the data into HTML, usually a report for clients or management. Sample XSL files are found in the installation folder under Resources\Stylesheets.
 +The Transform Tasklist page allows entry of a Title, which is a field added to the intermediate file. The Stylesheet .xsl file can be selected from the default folder or any other.
 +Task selection allows a subset of the entire tasklist to be exported into the intermediary file for transformation. You can Filter and/or Select desired tasks, and then come to this page to report on just those tasks.
 +The attribute selection allows for all possible fields to be exported, or specific fields can be specified to simplify the exported file. If the XSL is written to skip unrecognized fields then All attributes can be selected, but some XSL is more specific on exactly what it requires, so specific custom fields may be required.
 +On clicking OK, you are prompted for the location of the final transformed file. Select the folder and file name. The Save As Type is only used to display other files of the same type - it does not affect the format of the file that is saved.
 +A full explanation of XSL is beyond the scope of this wiki. Details of transforming ToDoList XML via XSL will be posted here as time permits. Until then a lengthy tutorial on the topic can be found [[http://​​articles/​898616/​todolists-stylesheets-a-tutorial|here]] Comments and questions are welcome there.
 +The samples under Resources\Stylesheets can be viewed with any text/XSL editor and used as a guide for creating new transforms. Just copy one of those, edit, and then use your own version for your reports.
 +Contributions for new transform stylesheets can be posted to the [[https://​​abstractspoon/​todolist_resources|Github repository]].
 +Note that there is a Preference to "​Automatically export after saving"​. Specifying a stylesheet here will cause this transformation process to occur on every save operation. This allows you to publish the state of a tasklist to a website, network folder, or other location without manual effort.
transformation.txt · Last modified: 2016/10/10 20:21 by editor