Elements - Example 3


<xsl:transform version="1.0"
    xmlns:xsl="https://www.w3.org/1999/XSL/Transform">

<xsl:import href="personDetails_lib.xslt" />
<xsl:output media-type="html"
   doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
   omit-xml-declaration="yes" />

<xsl:template match="/">
<p><xsl:attribute name="class">prompt</xsl:attribute>Welcome:</p>
<xsl:comment>names follow</xsl:comment>
<xsl:for-each select="PAYLOAD/Student/Names/Name/FirstName">
    <br /><xsl:value-of select="." />
    <xsl:if test=". = 'Dean'"> - Hi DEAN !!!</xsl:if>
</xsl:for-each>
</xsl:template>

</xsl:transform>