I wrote an XSL script that generates BBcode for all of the attack/damage rolls for each creature in a portfolio. It contains this line:
When I run the script, Hero Lab wants to save the output as a .htm file. After it's saved, the program shell executes the new file, causing it to open up in my browser even though it's plain text and thus renders as a giant unreadable blob.
I can manually change the file extension from "htm" to "txt" in the save dialog, so it's not a huge deal. But that's an extra step I could live without.
Is there anything I can do to the XSL script to signal Hero Lab to use a .txt extension by default in this case?
Code:
<xsl:output encoding="utf-8" method="text" />
When I run the script, Hero Lab wants to save the output as a .htm file. After it's saved, the program shell executes the new file, causing it to open up in my browser even though it's plain text and thus renders as a giant unreadable blob.
I can manually change the file extension from "htm" to "txt" in the save dialog, so it's not a huge deal. But that's an extra step I could live without.
Is there anything I can do to the XSL script to signal Hero Lab to use a .txt extension by default in this case?