(FOAF)Homepage online

My homepage is finally online, with a short bio and links to misc stuff (projects, bookmarks …). It’s generated from my FOAF profile, using PHP5 and XSLT.

As you may see, the XSLT stylesheet is really basic: it just parses the FOAF profile to render informations, loops around foaf:currentProject and foaf:onlineAccount, and sometimes test the lang parameter to display informations in french or english

This is actually why is use PHP5 instead a simple stylesheet applied to the profile, as I autodetect preferend user language from the browser. Moreover, as one can embed PHP in an XSLT stylesheet with PHP5, I can retrieve the lang parameter, and also display last update, reading file information with filemtime().

Advertisement
Tagged ,

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.