{"action":"created","issue":{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/28","labels_url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/28/comments","events_url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/28/events","html_url":"https://github.com/abstractspoon/ToDoList_Wiki/issues/28","id":106208498,"number":28,"title":"XSL Stylesheet(s) Fail to Display Completed Tasks with Strike-through","user":{"login":"abstractspoon","id":12944354,"avatar_url":"https://avatars.githubusercontent.com/u/12944354?v=3","gravatar_id":"","url":"https://api.github.com/users/abstractspoon","html_url":"https://github.com/abstractspoon","followers_url":"https://api.github.com/users/abstractspoon/followers","following_url":"https://api.github.com/users/abstractspoon/following{/other_user}","gists_url":"https://api.github.com/users/abstractspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/abstractspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abstractspoon/subscriptions","organizations_url":"https://api.github.com/users/abstractspoon/orgs","repos_url":"https://api.github.com/users/abstractspoon/repos","events_url":"https://api.github.com/users/abstractspoon/events{/privacy}","received_events_url":"https://api.github.com/users/abstractspoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/labels/7.0.0","name":"7.0.0","color":"ededed"},{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/labels/All%20OS%20Platforms","name":"All OS Platforms","color":"ededed"},{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/labels/Known%20Issue","name":"Known Issue","color":"ededed"},{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/labels/Wiki","name":"Wiki","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"zajchap","id":13313205,"avatar_url":"https://avatars.githubusercontent.com/u/13313205?v=3","gravatar_id":"","url":"https://api.github.com/users/zajchap","html_url":"https://github.com/zajchap","followers_url":"https://api.github.com/users/zajchap/followers","following_url":"https://api.github.com/users/zajchap/following{/other_user}","gists_url":"https://api.github.com/users/zajchap/gists{/gist_id}","starred_url":"https://api.github.com/users/zajchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zajchap/subscriptions","organizations_url":"https://api.github.com/users/zajchap/orgs","repos_url":"https://api.github.com/users/zajchap/repos","events_url":"https://api.github.com/users/zajchap/events{/privacy}","received_events_url":"https://api.github.com/users/zajchap/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-13T10:05:28Z","updated_at":"2015-09-13T10:05:30Z","closed_at":null,"body":"_From @abstractspoon on August 27, 2015 2:58_\n\nOS: Windows 7\r\nTDL: 7.0\r\n\r\nIn 6.9 and before TDL would always export the DONEDATESTRING task attribute so that stylesheets could use this to determine if a task should be shown with strike-through. Unfortunately this also had the side-effect of causing all exporters to display the completion date even if the user did not ask for it.\r\n\r\nIn 7.0 I attempted to rectify this by storing the DONEDATESTRING as an XML element together with the attribute HIDE=\"1\" so that exporters could skip over the DONEDATESTRING in those cases where the user did not ask for it.\r\n\r\nUnfortunately this has broken the stylesheets which rely on DONEDATESTRING always being an attribute.\r\n\r\nI can't immediately see an alternative other than changing the stylesheets to accommodate this change but I am open to debate.\r\n\r\nSTEPS TO REPRODUCE\r\n\r\n1. Create a new tasklist with one completed task\r\n2. Ensure the completion date column is **hidden**\r\n3. File > Print Preview\r\n4. Stylesheet: *Z_SimpleReport.xsl*\r\n5. Attributes > Visible Columns Only\r\n6. OK\r\n\r\nObserve that the task is displayed **without strike-through**.\r\n\r\n7. Now ensure the completion date column is **showing**\r\n8. Repeat 3-6\r\n\r\nObserve that the task is now displayed **with strike-through**.\r\n\r\nThis is an example task with a hidden completion date (and ID):\r\n\r\n```<TASK TITLE=\"HELLO WORLD\" ...>\r\n<ID HIDE=\"1\">2</ID>\r\n<DONEDATE HIDE=\"1\">42242.32778935</DONEDATE>\r\n<DONEDATESTRING HIDE=\"1\">26/08/2015 7:52 AM</DONEDATESTRING>\r\n</TASK>```\n\n_Copied from original issue: abstractspoon/ToDoList_Issues#55_"},"comment":{"url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/comments/139857658","html_url":"https://github.com/abstractspoon/ToDoList_Wiki/issues/28#issuecomment-139857658","issue_url":"https://api.github.com/repos/abstractspoon/ToDoList_Wiki/issues/28","id":139857658,"user":{"login":"abstractspoon","id":12944354,"avatar_url":"https://avatars.githubusercontent.com/u/12944354?v=3","gravatar_id":"","url":"https://api.github.com/users/abstractspoon","html_url":"https://github.com/abstractspoon","followers_url":"https://api.github.com/users/abstractspoon/followers","following_url":"https://api.github.com/users/abstractspoon/following{/other_user}","gists_url":"https://api.github.com/users/abstractspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/abstractspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abstractspoon/subscriptions","organizations_url":"https://api.github.com/users/abstractspoon/orgs","repos_url":"https://api.github.com/users/abstractspoon/repos","events_url":"https://api.github.com/users/abstractspoon/events{/privacy}","received_events_url":"https://api.github.com/users/abstractspoon/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T10:05:30Z","updated_at":"2015-09-13T10:05:30Z","body":"```<xsl:when test=\"@DONEDATESTRING\">```\r\n\r\nThis the problem line I think. I believe that that '@' instructs MSXML to look for an **inline attribute**. The code needs to be modified to also check for a **child element** having this name. \r\n\r\nUnfortunately I've no idea what needs to be added to handle this. I've emailed zajchap separately which is why this is allocated to him."}}