[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: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Thu, 18 Apr 2002 02:29:17 +0100
RE:  <MsSinceMidnight1Jan1970>1009843200000</MsSinceMid
I'm playing with mozilla 9.9 rather than netscape. I guess that
netscapes can't handle this yet. Not that mozzes can handle it either.
Maybe we have to wait a few more months for it. Or do it in xslt or
maybe we need a kind of halfway house between FO and a standard html
that will give us some kind of standard output mothod. Sheesh I have
spent too many hours on trying to get cross-browser stuff working in the
last couple of months I want to shoot somebody!!!

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Dan Diebolt
> Sent: 18 April 2002 02:00
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: RE:  
> <MsSinceMidnight1Jan1970>1009843200000</MsSinceMidnight1Jan1970>
> 
> 
> Chris, I can't get this working as you describe using NN6.1.
> All I get is "1013777148640" displayed. What version of NN did 
> you try this with?
> =========================================
> s.xml
> <?xml version="1.0" ?>
> <?xml-stylesheet type="text/xsl" href="s.xsl"?>
> <date>1013777148640</date>
> 
> s.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>
>    <head>
>     <script type="text/javascript">
>      function fixupDates() {
>       //alert("here");
>       var dvs = document.getElementsByTagName("div");
>       //alert(dvs.length);
>       for (var i=0; i &lt; dvs.length; i++) {
>        //alert(dvs[i].className);
>        if (dvs[i].className == "fixDate") {
>         //alert("here");
>         d=new Date(parseInt(dvs[i].innerHTML));
>         //alert(d.toString());
>         var dd=d.getDate();
>         var mm=d.getMonth()+1;
>         var yy=d.getFullYear();
>         //alert(mm+"/"+dd+"/"+yy);
>         dvs[i].innerHTML = mm+"/"+dd+"/"+yy;
>         //alert(dvs[i].innerHTML);
>        }
>       }
>      }
>     </script>
>    </head>
>    <body onload="fixupDates()">
>     <div class="fixDate"><xsl:value-of select="date"/></div>
>    </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


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.