An <xsl:if> programming instruction is a conditional construct that causes instructions to be processed if the XPath expression held in the test attribute evaluates to true.
<xsl:if test="xpath-expression">
</xsl:if>
Table 9: Programming Instructions: Examples and Pseudocode
|
Programming Instruction Examples |
Pseudocode Meanings |
|---|---|
|
When the host-name statement is included at the [edit system] hierarchy level, change the hostname to M320. Otherwise, issue the warning message: Missing [edit system host-name] M320. |
|
For each Gigabit Ethernet interface configured at the [edit interfaces ge-fpc/pic/port unit logical-unit-number] hierarchy level. |
|
Select any macro parameter that does not contain a parameter value. In other words, match all apply-macro statements of the following form:
And ignore all apply-macro statements of the form:
|
|
If the host-name statement is not included at the [edit system] hierarchy level. |
|
If the apply-macro statement named no-igp is included at the current hierarchy level. |
|
If the apply-macro statement with the name no-ldp is not included two hierarchy levels above the current hierarchy level. |