Thanks Clayton,

 

The penny had already dropped. I'd foolishly assumed that ItemStyle.xsl
would already be referencing all the required namespaces.

 

Very odd that it doesn't. Another lesson learnt.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Clayton James
Sent: Wednesday, 20 August 2008 12:37 PM
To: [email protected]
Subject: RE: [OzMOSS] Formatting datetime string in ItemStyle.xsl

 

Have you got your ddwrt xmlns referenced in the file. Your FormatDate
function will use this.

 

Try dd-MM-yyyy

 

cheers

Clayton James

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Noone
Sent: Wednesday, 20 August 2008 11:17 AM
To: [email protected]
Subject: [OzMOSS] Formatting datetime string in ItemStyle.xsl

 

Hi all,

 

I've created a custom style in ItemStyle.xml for use in a customised
CQWP to return title, article date and summary field.

 

All is well apart from the ability to format the date. I'm using:

 

<xsl:value-of select="ddwrt:FormatDateTime(string(@ArticleStartDate)
,1033 ,'MMMM dd, yyyy')" />

 

The same code works within a DataFormWebPart I've palced on an aspx page
but totally breaks when applied to ItemStyle.xml.

 

Is this due to the 1.0 schema it uses? If so, is there another way to
manipulate this output string to the format I require?

 

Kind regards,

Paul Noone
Online Developer, ICT
CEO Sydney

ph: (02) 9568 8461

fax: (02) 9568 8483
email: [EMAIL PROTECTED]
web: http://www.ceo.syd.catholic.edu.au/

 

________________________________

________________________________________________________________________
____
This e-mail is intended for the use of the addressed recipient(s) only
and may contain confidential and privileged information. If you have
received this message in error, please delete the message and any
attachments and copies immediately; and notify the sender by return
e-mail.

Any views expressed in this message or any attachments are those of the
individual sender and do not necessarily represent the corporate opinion
of the Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
________________________________________________________________________
____ 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.6.6/1621 - Release Date:
19/08/2008 06:53 PM

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 



____________________________________________________________________________
This e-mail is intended for the use of the addressed recipient(s) only and may 
contain confidential and privileged information. If you have received this 
message in error, please delete the message and any attachments and copies 
immediately; and notify the sender by return e-mail.

Any views expressed in this message or any attachments are those of the 
individual sender and do not necessarily represent the corporate opinion of the 
Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
____________________________________________________________________________



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to