[Contents] [Prev] [Next] [Index] [Report an Error]


<jcs:emit-change>

Syntax

<xsl:call-template name="jcs:emit-change">
    <xsl:with-param name="content">
        ...
    </xsl:with-param>
    <xsl:with-param name="dot" select="expression"/>
    <xsl:with-param name="message">
        <xsl:text>...</xsl:text>
    </xsl:with-param>
    <xsl:with-param name="name" select="name($dot)"/>
    <xsl:with-param name="tag" select="'change'"/>
    <xsl:with-param name="tag" select="'transient-change'"/>
</xsl:call-template>

Description

Generate a <change> or <transient-change> element, which results in a persistent or transient change to the configuration.

Parameters

<xsl:param name="content">—Allows you to include the content of the change, relative to dot.

<xsl:param name="dot" select=".">—Allows you to indicate a location other than the current location in the XML hierarchy. The select attribute contains the current context "." as a default value. If you want to change the current context, you can include the dot parameter and include a different XPath expression in the select attribute.

<xsl:param name="message">—Allows you to include a warning message to be displayed by the CLI, notifying the user that the configuration has been changed. The message parameter automatically includes the edit path, which defaults to the current location in the XML hierarchy. To change the default edit path, include the dot parameter.

<xsl:param name="name" select="name($dot)"/>—Allows you to refer to the current element or attribute. The name() XPath function returns the name of an element or attribute. The name parameter defaults to the name of the element in $dot (which in turn defaults to ".", the current element).

<xsl:param name="tag" select="'change'"/>—Allows you to specify the type of change to be generated. By default, the <jcs:emit-change> template generates a permanent change, as designated by the 'change' expression. To specify a transient change, you must include the tag parameter and include the 'transient-change' expression, as shown here:

<xsl:with-param name="tag" select="'transient-change'"/>

Usage Guidelines

See <jcs:emit-change> Template.

Usage Example

See Imposing a Minimum MTU Setting.

See Also

xsl:param, xsl:with-param


[Contents] [Prev] [Next] [Index] [Report an Error]