Example of -m in command line
Added by Anonymous over 17 years ago
Legacy ID: #4317444 Legacy Poster: CHY-Consultants (chy-consultants)
We would like to change the default in our Unix environment from stderr to stdout with the -m parameter. I have read the doco but was wondering if there was an example available.
Replies (2)
RE: Example of -m in command line - Added by Anonymous over 17 years ago
Legacy ID: #4318309 Legacy Poster: CHY-Consultants (chy-consultants)
More info regarding -m: We attempted adding -m to the command line as " -m stdout " When Saxon processed <xsl:message/> the following error was generated: "Failed to load stdout" Transformation failed: Runtime errors were reported. How is it that we should redirect our output to stdout?
RE: Example of -m in command line - Added by Anonymous over 17 years ago
Legacy ID: #4318377 Legacy Poster: Michael Kay (mhkay)
The -m option allows you to nominate your own Receiver to handle the output of xsl:message. If all that you want to do is to change the output destination, it's easy enough to do that from the Java API, but not so easy from the command line. To do it from the command line I think you have to write a class which subtypes net.sf.saxon.event.MessageEmitter and on initialization calls setOutputStream(System.out); then supply the name of this class as the -m option.
Please register to reply