Project

Profile

Help

Bug: won't write empty output

Added by Anonymous over 19 years ago

Legacy ID: #3046202 Legacy Poster: Brock Filer (filerba)

When the result of a transform is nothing, Saxon 8 won't write to the output file. This is true with both 8.0 and 8.3. Saxon 7.7 correctly writes an empty file. Momentarily confusing when I finally cleared the last of some trivial errors reported by a test stylesheet, but the last one just wouldn't go away =:-)


Replies (2)

RE: Bug: won't write empty output - Added by Anonymous over 19 years ago

Legacy ID: #3046379 Legacy Poster: Michael Kay (mhkay)

This change was made deliberately and for good reasons, though I agree there is a down-side to it. It was mainly done to handle situations like <xsl:template match="/"> <xsl:result-document validate="yes" href="..."> where the stylesheet makes no attempt to write to it principal output destination, but creates all output using xsl:result-document. Michael Kay

RE: Bug: won't write empty output - Added by Anonymous over 19 years ago

Legacy ID: #3049689 Legacy Poster: Brock Filer (filerba)

So it's a feature; that's okay then. I too have dummy output files littering my build directories, which I'll be happy to get rid of. I notice though that you're no longer required to specify a primary result document, which seems to somewhat reduce the utility of this feature.

    (1-2/2)

    Please register to reply