Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-07 09:34:28

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Txp 5 and HTML5 + RDFa

Following up with my comment in the recent blog post, The Road to Txp 5 … (problems, see next thread entry)

About the proposal for HTML5 in Txp 5…be careful here. I have nothing against HTML5, on the contrary I support its use, but a smarter look at the future will be to RDFa compatibility, and taking the optimal path to get there. To my mind, that should be the direction to migrate to as it becomes sufficiently “safe” to do so, and right now HTML5 + RDFa is only working draft.

I would agree that few personal site owners will bother with RDFa right now and could edit their own code if they wanted to make the jump (this will certainly be me eventually), but bigger players (companies, clients) are moving to semantic web configurations more and more frequently now and that might be an attractive feature in a CMS soon. (Drupal is already making the jump.)

This move to true semantic web content in big business is championed by sem techs and prominent content strategists, like Rachel Lovinger, who is all over it.

Anyway, I’m not saying don’t use HTML5, I’m just saying take a smart, compatible approach to it.

FWIW: Here’s some excerpt material from an exchange on HTML5 + RDFa from the W3C’s RDFa mail list (public-rda@w3.org). Maybe it provides some insight for consideration.

Begin Excerpt ==================

Le 5 juil. 2010 : 14:26, Sergey Chernyshev a écrit :

I came across the practical issue of picking a DOCTYPE for my project … and there are no reasons why I shouldn’t pick HTML5 DOCTYPE except for one – I want RDFa there. Can someone who has a good picture of the problem recommend how I should go about adopting both.

Here’s the bug with the discussion on the topic:
http://code.google.com/p/showslow/issues/detail?id=61

—later—

Le 6 juil. 2010 : 00:01, Karl Dubost a écrit :

[After] reading your discussion…

Strict Mode

<!DOCTYPE html> will put your browser into strict mode.
See http://ejohn.org/blog/html5-doctype/

Proposed syntax for adding RDFa

careful it is a working draft
http://www.w3.org/TR/rdfa-in-html/

<!DOCTYPE html>
<html version="HTML+RDFa 1.1" lang="en">
  <head>
    <title>Example Document</title>
  </head>
  <body>
    <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  </body>
</html>

Syntax Style (aka pseudo-xhtml)

You can write mostly with xhtml syntax style without issues.
But be aware that your document will not be necessary xhtml
mime-type ready. So basically, you can in html5:

  • close your elements, ex: <br/>
  • quote your attributes values, ex: <span title="html5 is flexible">html5<span>

There is a document explaining the syntax if you want to serve
documents using both text/html and application/xhtml+xml
careful it is a working draft
http://www.w3.org/TR/html-polyglot/

End Excerpt ===========================

Last edited by Destry (2010-07-07 09:45:17)

Offline

#2 2010-07-07 09:42:19

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Txp 5 and HTML5 + RDFa

I can’t seem to leave a comment for the blog post, The Road to Txp 5.

A preview show’s most Textile doesn’t work (e.g., making something bold), and when I try and submit it says my comment is marked as spam.

I also see these errors at the top of the page:


Strict Standards: Non-static method timezone::is_dst() should not be called statically in /home/txpcom/domains/v2.textpattern.com/web/public/textpattern/lib/txplib_misc.php on line 1265

Strict Standards: Non-static method timezone::is_supported() should not be called statically in /home/txpcom/domains/v2.textpattern.com/web/public/textpattern/lib/txplib_misc.php on line 2523

Last edited by Destry (2010-07-07 09:46:21)

Offline

#3 2010-07-07 10:04:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: Txp 5 and HTML5 + RDFa

No idea about the problems with txp.com, sorry. I think the servers have been upgraded (or are in the process of being done so). Perhaps that’s the issue — maybe we’re on PHP 5.3+ now — and some settings need altering, as documented somewhere round here.

With regards HTML 5 and RDFa, I can understand making the default site compliant and adding attributes to the tags to support it — in the end that’ll help search engines to help us better. When I mentioned HTML 5 in the article I really meant for the admin side. I don’t see the value in making the admin side markup speak RDFa when it’s locked away from machine (search engine) access.

But perhaps I’ve missed something? Happens all the time!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2010-07-07 10:09:53

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Txp 5 and HTML5 + RDFa

Slaps self!

Of course, the admin-side.

Yes, I’m talking out of my butt, about the front-side. :)

I read the blog post yesterday, came back to it today and really just focused on comments…specifically Kevin’s and his recommendation for HTML5…and then I went off track.

+1 on the HTML5 admin-side.

BTW, what I was trying to say in the comment of the article was…

Stef, and all those credited,

Fantastic stuff!

Here’s to a quick transition from 4.3.0 to 5! Clinck!

Last edited by Destry (2010-07-07 10:13:00)

Offline

#5 2010-07-07 10:33:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: Txp 5 and HTML5 + RDFa

Destry wrote:

+1 on the HTML5 admin-side.

Duly noted :-)

Stef, and all those credited, Fantastic stuff! Here’s to a quick transition from 4.3.0 to 5! Clinck!

Thanks. Will do what we can. If you get a chance to try out r3372 and have some feedback (I’m taking a look at Philippe’s recommendations this week) then the more sets of eyes the merrier I say.

(btw, my guess is that someone with the keys to the txp.com server will be able to fix the problems you noted — I guess Robert or Stuart or someone like that)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2010-07-07 17:05:00

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Txp 5 and HTML5 + RDFa

Bloke wrote:

No idea about the problems with txp.com, sorry. I think the servers have been upgraded (or are in the process of being done so). Perhaps that’s the issue — maybe we’re on PHP 5.3+ now — and some settings need altering, as documented somewhere round here.

See here

Last edited by redbot (2010-07-07 17:08:08)

Offline

Board footer

Powered by FluxBB