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

Re: please help with date formatting

Subject: Re: please help with date formatting
From: "SAL ROSALES" <sal.rosales@xxxxxxxxxxx>
Date: Thu, 5 Dec 2002 15:05:54 -0800
msxsl format date
Unfortunately, Sharepoint uses MSXML 3. Can I still do this with 3.0?

----- Original Message -----
From: "Jeff Beadle" <Jbeadle@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, December 05, 2002 2:09 PM
Subject: RE:  please help with date formatting


> If you're using msxml 4.0 you can use some of the new msxslt extensions,
> namely:  msxsl:format-date(), where
> xmlns:msxsl="urn:schemas-microsoft-com:xslt".
>
> Here's the usage:
>
>    <xsl:value-of select="msxsl:format-date( . , 'MMM dd, yyyy')"/>
>
> In your case:
>
>    <TD valign="top" align="left" class="NormalBlackLimeBG">
>       <xsl:value-of select="msxsl:format-date(
> dav:propstat/dav:prop/office:StartDate,
> 'ddd, MMM. dd')"/>
>    </TD>
>
> HTH,
> Jeff
>
>
> -----Original Message-----
> From: SAL ROSALES [mailto:sal.rosales@xxxxxxxxxxx]
> Sent: Thursday, December 05, 2002 5:22 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  please help with date formatting
>
>
> I'm just not getting this. I'm pulling a startdate value from a document
> using a vbscript query and when I output it in XSL it appears like this:
>
> 2002-12-25T12:00:00.000
>
> I need it to look like this: Wed, Dec. 25
>
> I'm going in circles, I can't get it to work using vbscript functions to
> xsl, can't use xsl to format it, I don't know what to do and its driving
me
> crazy. This particular sharepoint stylesheet uses these namespaces:
>
> <xsl:stylesheet
> xmlns:xsl="uri:xsl"
> xmlns:dav="DAV:"
> xmlns:office="urn:schemas-microsoft-com:office:office"
> xmlns:attributes="urn:schemas-microsoft-com:publishing:"
> xmlns:fulltext="urn:schemas.microsoft.com:fulltextqueryinfo:">
>
> This is my XSL code that is generating the date:
>
> <TD valign="top" align="left" class="NormalBlackLimeBG">
> <xsl:value-of select="dav:propstat/dav:prop/office:StartDate"/>
> </TD>
>
> SR
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  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.