PBlog - Peters persönlicher Blog
Sonntag, Juni 08, 2008
  XSL to generate a sorted & flat ToDoList
ToDoList (by abstractspoon) is a very nice tool to keep track of all your tasks.

With this XSL you can generate a flat view (not a tree view). It supports a couple of XSL parameters to control sorting and filtering. So, you can sort by priority or by due date.

The XSL is based to a large extend on ToDoListTableStylesheet_v1.0 by xabatcha

The "multi_view_todolist.xsl" that is also included generates an overview of the active task list by selecting
It uses the templates defined by flat_sorted_todolist.xsl.

The .bat files included can be used to run the transfrom as a user-defined tool from ToDoList.

Download: flatToDoList 6975 2008-06-07.zip

Labels: , , ,

 
Comments:
Hello,

I am trying to use your XSL. I got the principal html file with tasks but when I try to click to the hyperlink on task to view the detail I have an error message.

could you explain how to use your XSL ?

Best Regards
 
Hi,

I use the XSL as custom tool in TDL:
* Create a new custom tool
** set Path to the path of flat_sorted_todolist.bat
** set Arguments e.g. to
"$(pathName)" "$(folder)$(fileTitle).html" 8 "$(todaysDate)" duedate
** Set the icon to whatever you like (I use firefox :-))

This calls the BAT as custom tool from TDL, which opens the generated HTML in your default browser.

You need msxsl installed in order to make this work (see wiki).

The BAT takes the following arguments:
%1 - the input XML (=TDL), I use TDL's "$(pathName)"
%2 - the output path, I use "$(folder)$(fileTitle).html"
%3 - the minimum priority tasks must have to be included (I use 8)
%4 - the today string "$(todaysDate)"
%5 - currently not used


For the "multi_view" list, I use
Path: multi_view_todolist.bat
Arguments: "$(pathName)" "$(folder)$(fileTitle)-overview.html" 8 "$(todaysDate)" duedate

(which is more or less the same as above, I only use a different output filename.)

This works fine for me. Currently TDL 5.6.6 has some bugs that prevent some other usages (see also the discussion in the forum)

Hope this helps,
Peter
 
Additional remark:

due to the current XML bugs in TDL (still there in 5.7.2) I have a work-around in the flat_sorted_todolist.xsl that filters to tasks due the next 14 days by default - but this only works with the invocation described above.

In other cases just change the default for "duedate" and "startuntil" to "0" i.e. list all tasks -- or pass some value to the XSL:
<xsl:param name="dueuntil" select="0" />
<xsl:param name="startuntil" select="0" />

Did you get it working? If not, please post your error message or analyze the tdl:// link in your file. It's quite likey that the filename is missing in your case.
 
Hi,

I'm using your template. Very nice and exactly what I'm looking for. But there is one point missing:
I'm not able to transform the tasks including the already finished tasks, is this right?
How can I change the XSL, for example, I don't want to see the filename as a headline...is this possible?

Thanks a lot for your help
Best regards
Steve
 
Hi,

I'm using your template. Very nice and exactly what I'm looking for. But there is one point missing:
I'm not able to transform the tasks including the already finished tasks, is this right?
How can I change the XSL, for example, I don't want to see the filename as a headline...is this possible?

Thanks a lot for your help
Best regards
Steve
 
Is it intentionally that you are using "PECENTDONE" instead of "CALCPERSENTDONE"?

Best regards
Steve
 
Kommentar veröffentlichen



<< Home
Peters persönlicher Blog. Viel Spaß damit! :-)


Archiv
Mai 2006 / Juni 2006 / Juli 2006 / August 2006 / September 2006 / Oktober 2006 / November 2006 / Dezember 2006 / März 2007 / Juni 2007 / August 2007 / November 2007 / April 2008 / Juni 2008 / Juli 2008 / Oktober 2008 / November 2008 / Februar 2009 / März 2009 / Oktober 2009 / Januar 2010 / Dezember 2011 / Januar 2012 /

Atom: Posts