Hi there,
I'm having some trouble formatting the date that appears underneath each "News" post on the following page - www.rjt-online.com/home.php
Here is the code for the XSL file that is being pulled into the above page with php. The xsl file is pulling in an RSS feed from my Wordpress blog:
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="http://www.rjt-online.com/wp/?feed=rss2&cat=23" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:output method="html" encoding="utf-8"/>
<!-- This is the latest blogs - Shows latest 3 blog posts -->
<!-- This is where you specify how many posts will display (select"x") -->
<xsl:param name="ItemsPerPage" select="2" />
<xsl:template match="/"><link href="css/rjt_new.css" rel="stylesheet" type="text/css" />
<xsl:for-each select="rss/channel/item[position() <= $ItemsPerPage]">
<span class="blogTitle"><xsl:value-of select="title"/></span><br />
<span class="blogpubdate"><xsl:value-of select="pubDate"/></span><br /><br />
<xsl:value-of select="content:encoded" disable-output-escaping="yes"/><br />
<br />
<br />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Instead of the date format reading "Mon, 12 Jul 2010 10:00:48 +0000", I'd like it to read Monday, 12th July 2010.
I would appreciate any help you could give me with this. I'm a novice with websites in general and can't seem to get it to work correctly.
Thanks!