Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

jcs:statement Template

 

XSLT Syntax

SLAX Syntax

Description

Generate a <statement> element suitable for inclusion in an <xnm:error> or <xnm:warning> element. This location defaults to “ . ”, the current position in the XML hierarchy. If the error is not at the current position in the XML hierarchy, you can alter the default when you call the template by including a valid XPath expression either for the dot parameter in SLAX scripts or for the select attribute of the dot parameter in XSLT scripts.

Parameters

dotXPath expression specifying the hierarchy level. The default location is the position in the XML hierarchy that the script is currently evaluating. You can alter the default when you call the template by including a valid XPath expression either for the dot parameter in SLAX scripts or for the select attribute of the dot parameter in XSLT scripts.

Usage Examples

The following example demonstrates how to call the jcs:statement template in a commit script:

When you commit a configuration that includes a SONET/SDH interface with a maximum transmission unit (MTU) setting less than a specified minimum, the <xnm:error> element results in the following CLI output:

user@host# commit

The test of the MTU setting is not performed in the <xnm:error> element. For the full example, see Example: Imposing a Minimum MTU Setting.