test1.xml:
="1.0"="utf-8"
="text/xsl"="test1-style.xslt"
<Envelope>
<Header>
<TimeStamp>2012-08-17T12:04:21-05:00</TimeStamp>
</Header>
</Envelope>
test1-style.xslt:
="1.0"="utf-8"
<xsl:stylesheet version="2.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" indent="yes"/>
<xsl:template match="Envelope/Header">
<h1><xsl:apply-templates/></h1>
</xsl:template>
<xsl:template match="Envelope/Header/TimeStamp">
<b><xsl:value-of select="."/></b>
</xsl:template>
<xsl:template match="/">
<html lang="en">
<head>
<title>Test sample</title>
<style>
h1 { color: red; }
</style>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Output:
2012-08-17T12:04:21-05:00