This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: <MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>
- From: Jeff Beadle <Jbeadle at manh dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Apr 2002 14:07:42 -0400
- Subject: RE: [xsl] <MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>
- Reply-to: xsl-list at lists dot mulberrytech dot com
fails in NN6.2.1 also...
I even renamed your local "date" variable to _date, thinking you might have
some js prototyping issues going on ... but, nope--still didn't work.
-----Original Message-----
From: Dan Diebolt [mailto:dandiebolt@yahoo.com]
Sent: Wednesday, April 17, 2002 1:57 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl]
<MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>
Thanks Chris. However, I am still having problems with Netscape.
Anyone know why the following will not convert the date in NN6.1
(it works in IE6)?
Simple.xml
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="Simple.xsl"?>
<date>1013777148640</date>
Simple.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<body>
<script language="javascript">
date=new Date(<xsl:value-of select="date"/>);
var dd=date.getDate();
var mm=date.getMonth()+1;
var yy=date.getYear();
document.write(mm.toString() + "/" + dd.toString() + "/" +
yy.toString());
//document.write("hello world");
</script>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list