Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
1 <xsl:message terminate="yes"> "Goodbye and have a great day!";
1 error: Goodbye and have a great day!
The good news is that there is an easy trick that you can do with the <xsl:message> element in op scripts to hide the initial "error" string. Simply start the message string with a carriage return by overwriting the offending text:
1 <xsl:message terminate="yes"> "\rGoodbye and have a great day!";
1 Goodbye and have a great day!
NOTE: This only useful for op scripts because the message itself is still transmitted as an <xnm:error>, which causes the commit process to fail if it is a commit script.
Also, all the carriage return does is move the cursor to the beginning of the line. It does not delete the prior text itself, so your message string needs to be at least six characters long to ensure it overwrites "error:", or if it is shorter than six characters, you should first include six spaces and use the carriage return again before writing your actual message:
1 <xsl:message terminate="yes"> "\r \rBye!";