[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Question about formatDate method
I'm trying to use the method formatDate but I can't make it work. I made this simple XML document: <?xml version="1.0"?> <?xml:stylesheet type="text/xsl" href="testformatDate.xsl"?> <DATE> 1999095 </DATE> and this stylesheet: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <HTML> <BODY> <xsl:eval> formatDate(new Date(Date.parse(this.text)).getVarDate(), "yyyyddm", "ddmmmyy") </xsl:eval> <xsl:eval> formatDate(this.nodeTypedValue, "yyyyddm", "ddmmmyy") </xsl:eval> </BODY> </HTML> </xsl:template> </xsl:stylesheet> I'm using IE5 and neither of the two methods seems to work. I would like to change the date from 1999095 to 5sep99. Can someone help me? Thanks, Marco Eggenkamp. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|