![]() |
XSLT <if> Element is used to check the condition of the content of XML. The test is used to check the condition if it satisfies the condition then inside if is executed. Syntax: <xsl:if test=EXPRESSION>
// Some output if the expression is true
</xsl:if>
Parameters:
Example 1: In this example, we will use the <xsl:if> tag to only show the CSE student in the table. Save Both files as mentioned and open xsl file on the Browser, it will show the output as shown below: XML
XML
Output: ![]() XSLT <if> Element Example 2: In this example, we will show the details of Student Dhananjay with the help of if tag. Save Both files as mentioned and open xsl file on the Browser, it will show the output as shown below: XML
XML
Output: ![]() XSLT <if> Element |
Reffered: https://www.geeksforgeeks.org
Data Formats |
Related |
---|
![]() |
![]() |
![]() |
![]() |
|
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |