A date with my invalid RDF feed

Photo of Dublin I took in 2010

Can you spot the syntax error in my RDF-generating Liquid markup?

<item rdf:about="{{ site.baseurl }}{{ post.url }}">
  <title>{{ post.title }}</title>
  <link>{{ site.baseurl }}{{ post.url }}</link>
  <dc:creator>{{ site.author.name }}</dc:creator>
  <dc:date>{{ post.date | date_to_xml_schema }}</dc:date>

Catch it? No? Well, what if I did this:

  <dc:date>{{ post.date | date_to_xmlschema }}</dc:date>

That’s right, it turns out my RDF/RSS 1.0 feed wasn’t showing the correct value in my Dublin Core date attribute because I had one too many underscores. In my own defense, the use of underscores between each word had me believing they were supposed to appear with each and every word. A textbook definition of assumptions contradicting documentation.

For the dozen or so people still subscribed to my RDF/RSS 1.0 feed, you have excellent taste. Also, I apologise for not spotting this error sooner.

Feeds without timestamps

As an aside, I’m rather intruiged by how different parsers and blog aggregators would handle [malformed] feeds without timestamps. Would they gracefully degrade and assign a date based on when the feed was last polled, or would they attach the current time, or would they just drop the post? I might have to try this; albeit on a specific test feed not my primary blog!

And yes, the photo above is one I took during our trip to Dublin in 2010. The Dublin Core of the city, if you will. Thought I’d just throw that in there.


Liked this post?

Feel free to throw me a cup of coffee or an Amazon Wish List item. Cheers!

You can also comment to @Rubenerd, or email weblog2015@rubenschade.com. Let me know if you don't want your comment posted.