2008-07-20T14:24:49Z
Dave Pawson.
link
Home
NitPicking?
A month or so back I tweaked my atom feed such that it showed up the first paragraph in the feedreader I use (bloglines). Over IRC I was requested to put the full entry in the atom xml. Be quite honest I'd not considered how the atom was used, I'd focussed on making the html pretty... posting the atom to my site ... because I could?
Simple question. Does RFC4287 say what's normal/preferred in a feed? Full entries? Part entries? I'd not asked the question until I realised my 'entries' in the reader were only showing the summary... which I automatically create from the Entry title.
It did bring to light another issue though. I'm currently filtering the blog entries from the last 30 days. I did this using the date format I store, as the file name and ID (yymmdd). Works reasonably for rough date calculations. Except I'd screwed up the format string
<xsl:variable name="now" select="current-dateTime()"/>
<!-- Date passed to date difference calc -->
<xsl:variable name="date"
select="xs:integer(format-dateTime($now,'[Y02][M,2][D,2]','en',(),()))"/>
That gives me a matching yymmdd form. Using it as an int though, makes quite a difference if the format string has [M] and [M,2]. Resolved now. Hopefully. OK Sean ;-)
Keywords: atom
Comments (View)Return to main index