Hi,
Is anybody using this feature?
I've setup an XSL to convert the ToDoList into the todo.txt format. This is so that I can sync the transformed file to my phone to use with SimpleTask.
The only problem is that the file extension is .html, and there seems to be no way to change that. Any ideas?
How to change the output extension when transforming with a stylesheet
Moderator: abstr
-
- Posts: 41
- Joined: Sat Sep 26, 2020 7:41 pm
Re: Automatically Export After Saving
It should be as simple as adding the following at the top of your stylesheet just below the '<xsl:stylesheet ...>' line:
Let me know how it goes...
Code: Select all
<xsl:output media-type="text/txt"/>
-
- Posts: 41
- Joined: Sat Sep 26, 2020 7:41 pm
Re: How to change the output extension when transforming with a stylesheet
Hi abstr,
I found a different way by accident which works.
This is specifically for the "Automatically export after saving" feature.
Select the "HTML format" option - set the stylesheet, then select "Other Format" - Plain Text. The stylesheet is used and the file extension is .txt.
I'm sure that this is not intentional behavior but it works.
I found a different way by accident which works.
This is specifically for the "Automatically export after saving" feature.
Select the "HTML format" option - set the stylesheet, then select "Other Format" - Plain Text. The stylesheet is used and the file extension is .txt.
I'm sure that this is not intentional behavior but it works.
Re: How to change the output extension when transforming with a stylesheet
>> I'm sure that this is not intentional behavior but it works.
Nevertheless, I suggest you use the offered solution, because inevitably I will find and fix the faulty behaviour and then your workflow will break.
Nevertheless, I suggest you use the offered solution, because inevitably I will find and fix the faulty behaviour and then your workflow will break.