XSLT parsers should produce an empty file even if there is no explicit text output. However, I have a situation where Saxon-HE 9.3 does not produce any file output at all.
I compiled the files using this command:
Transform -s:1.xml -xsl:2.xsl -o:3.html
Whereby the contents of 1.xml is:
<?xml version="1.0"?>
<!-- greeting.xml -->
<x>
<greeting>1</greeting><greeting>2</greeting>
</x>
And the contents of 2.xsl is:
<?xml version="1.0"?>
<!-- greeting3.xsl -->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/"/>
</xsl:stylesheet>
However, there is no output (not even an empty file). Neither is there any error message.
What could have been the problem?
1.xml
and2.xsl
-- what do they contain? It is not just serious to say: "My program X when given the input Y produces no output" and not to show either X or Y -- regardles of the programming language your program is written in. – Dimitre Novatchev