If I am testing several different defined parameters can I call multiple xsl:when statements within on xsl:choose statement? So if I have:
<parameters>
<param id="1">
<key>Load</key>
<value>XML</value>
</param>
<param id="2">
<key>Input</key>
<value>Http</value>
</param>
<param id="3">
<key>Response</key>
<value>Y</value>
</param>
</parameters>
could I call three different <xsl:when> with a single <xsl:choose> to check the because I will have several <param> with different <value> that will later need to help call different templates.
Yes, sure, you can. You can also add an
xsl:otherwisenode to handle all other cases:This is similar to the
switchstatement in C-like languages and Java, or theSelect Casein VB.Of course, you can check for arbitrary XPath expressions, e.g. you could check as well for