[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: <MsSinceMidnight1Jan1970>1009843200000</MsSinceMid

Subject: RE: <MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Wed, 17 Apr 2002 10:57:21 -0700 (PDT)
RE:  <MsSinceMidnight1Jan1970>1009843200000</MsSinceMid
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.