Got it. Needed to add the ddwrt namespace to the root element in ItemStyle.xml.
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" 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 ____________________________________________________________________________ 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
