122
XSLT <xsl:choose> Element
The XSLT <xsl:choose> element is used to specify a multiple conditional test against the content of nodes with the <xsl:otherwise> and <xsl:when> elements.
Parameter explanation
test: It specifies a condition in xml data to test.
XSLT <xsl:choose> Element Example
Let’s take an example to create a table of element with its attribute “id” and its child <firstname>, <lastname>, <nickname>, and <salary> by iterating over each employee. It checks the salary and then prints the grade details.
Employee.xml
Employee.xsl
Output:
Next TopicXSLT <key>