SPFE Documentation | Collections > SPFE Function Reference > warning
Template: warning
- Description
-
Outputs a warning message to the build console.
- Source file
-
$SPFEOT_HOME/1.0/scripts/common/utility-functions.xsl
Parameters
- message
-
Type: item()*
The message to be output. The string "Warning: " will be prefixed to the message.
- in
-
Type: item()*
A string describing the location where the error occurred. This might be a location in a data file or in a script, depending on what would be most useful to the user in identifying and fixing the source of the problem.
Definition
<xsl:template name="sf:warning"> <xsl:param name="message"/> <xsl:param name="in">Not specified.</xsl:param> <xsl:if test="$verbosity='warning'"> <xsl:message >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</xsl:message> <xsl:message > <xsl:text >Warning: </xsl:text> <xsl:sequence select="string-join($message, '')"/> </xsl:message> <xsl:message select="'In: ', string-join($in, '')"/> <xsl:message >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</xsl:message> </xsl:if> </xsl:template> <xsl:template name="sf:warning"> <xsl:param name="message"/> <xsl:param name="in">Not specified.</xsl:param> <xsl:if test="$verbosity='warning'"> <xsl:message >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</xsl:message> <xsl:message > <xsl:text >Warning: </xsl:text> <xsl:sequence select="string-join($message, '')"/> </xsl:message> <xsl:message select="'In: ', string-join($in, '')"/> <xsl:message >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</xsl:message> </xsl:if> </xsl:template>