batch output file names
Added by Anonymous about 19 years ago
Legacy ID: #3251532 Legacy Poster: Brock Filer (filerba)
When you give saxon directories for input and output files, it creates output files with an .xml extension. It'd be nice if the extension were based on the xsl:output method attribute instead.
Replies (3)
Please register to reply
RE: batch output file names
-
Added by Anonymous about 19 years ago
Legacy ID: #3252354 Legacy Poster: Michael Kay (mhkay)
Yes, I suppose it would. In fact, I think there was a time when I did this, and then it got difficult because xsl:output was changed to allow the method to be computed dynamically; but now it's changed back again... It doesn't help, of course, in the common case where HTML output is chosen by default because the first element output is <html>... I'll think about it. I'm reluctant to let this feature get too elaborate; this really needs a more sophisticated control language such as a pipeline processing language.
RE: batch output file names
-
Added by Anonymous about 19 years ago
Legacy ID: #3252359 Legacy Poster: Michael Kay (mhkay)
I've just looked at the code - should have done that before responding. You should be able to get the suffix ".html" by setting <xsl:output media-type="text/html"/>. I'm not sure why I based it on media-type rather than method, but that's the way it is...
RE: batch output file names
-
Added by Anonymous about 19 years ago
Legacy ID: #3252604 Legacy Poster: Brock Filer (filerba)
Yay, I can delete a tmp directory. And thank you for another quick and helpful response.
Please register to reply