[j-nsp] predicates in if statement expression in SLAX

Martin T m4rtntns at gmail.com
Wed Mar 14 13:39:30 EDT 2018


Hi!

Is there a difference between following two if statement expressions:

if ($node-set/foo/bar == "klm") {
    <output> "blah";
}

..and:

if ($node-set[foo/bar == "klm"]) {
    <output> "blah";
}


Respective XSLT representations are:

<xsl:if test="$node-set/foo/bar = "klm"">

..and:

<xsl:if test="$node-set[foo/bar = "klm"]">


As far as I can tell, those two expressions are identical.


thanks,
Martin


More information about the juniper-nsp mailing list