<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="http://www.workcard.com/jscript" exclude-result-prefixes="msxsl js">

	<xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes" indent="yes"/>

	<msxsl:script language="JScript" implements-prefix="js">
		function getDate() {
			var d = new Date();
			n = (d.getHours() * 3600) + (d.getMinutes() * 60) + d.getSeconds() + (d.getMilliseconds() / 1000);
			s = n.toString();
			return s;
		}
	</msxsl:script>

	<xsl:template name="Timestamp">
		<xsl:param name="tMatch" select="''"/>
		<xsl:param name="tName" select="''"/>
		<xsl:param name="tMode" select="''"/>
		<xsl:param name="tPos" select="'s'"/>

		<xsl:choose>
			<xsl:when test="$tPos = 'f'">
				<TF>
					<xsl:attribute name="tMatch">
						<xsl:value-of select="$tMatch"/>
					</xsl:attribute>
					<xsl:attribute name="tName">
						<xsl:value-of select="$tName"/>
					</xsl:attribute>
					<xsl:attribute name="tMode">
						<xsl:value-of select="$tMode"/>
					</xsl:attribute>
					<xsl:value-of select="js:getDate()"/>
				</TF>
			</xsl:when>
			<xsl:otherwise>
				<TS>
					<xsl:attribute name="tMatch">
						<xsl:value-of select="$tMatch"/>
					</xsl:attribute>
					<xsl:attribute name="tName">
						<xsl:value-of select="$tName"/>
					</xsl:attribute>
					<xsl:attribute name="tMode">
						<xsl:value-of select="$tMode"/>
					</xsl:attribute>
					<xsl:value-of select="js:getDate()"/>
				</TS>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c)1998-2003 Copyright Sonic Software Corporation. All rights reserved.
<metaInformation>
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
-->