<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:template match="/">
<html>
<head>
<title>example</title>
</head>
<body>
<xsl:apply-templates select="//Student"/>
</body>
</html>
</xsl:template>
<xsl:template match="Student">
<xsl:if test="contains(Name, 'garg')">
<DIV>
<B>
<xsl:value-of select="Name"/>
</B> lives in
<I>
<xsl:value-of select="address"/>
</I>
</DIV>
</xsl:if>
</xsl:template>
</xsl:stylesheet>