XSLT Elements - Example 1


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform">
<xsl:param name="pagetitle" />
<xsl:template match="/PAYLOAD">
<html>
<head>
   <title>
<xsl:value-of select="$pagetitle" /></title>
</head>
<body>
<xsl:call-template name="header" />
  <p><b>Student ID</b>: <xsl:value-of select="Student/StudentID" />
  <br /><b>Date of Birth</b>:<xsl:value-of select="Student/DateOfBirth" />
  </p>
</body>
</html>

</xsl:template>
</xsl:stylesheet>