diff templates/postAtom.xml @ 34:efba519d2d32

Clarification des namespaces pour le parser XML de PHP.
author Franck Deroche <webmaster@defr.org>
date Mon, 05 Nov 2007 09:43:24 +0100
parents c6508503269a
children
line wrap: on
line diff
--- a/templates/postAtom.xml	Mon Nov 05 09:23:40 2007 +0100
+++ b/templates/postAtom.xml	Mon Nov 05 09:43:24 2007 +0100
@@ -1,15 +1,17 @@
+<?xml version='1.0' encoding='utf-8'?>
 <entry xmlns='http://www.w3.org/2005/Atom'
+       xmlns:xhtml='http://www.w3.org/1999/xhtml'
        xmlns:tr='http://defr.net/2007/template'>
    <title type='xhtml'>
-     <div xmlns='http://www.w3.org/1999/xhtml'>
+     <xhtml:div xmlns='http://www.w3.org/1999/xhtml'>
        <tr:postTitle />
-     </div>
+     </xhtml:div>
    </title>
    <id>tag:defr.org,2006:<tr:postNumber /></id>
    <content type='xhtml'>
-   	<div xmlns='http://www.w3.org/1999/xhtml'>
+   	<xhtml:div xmlns='http://www.w3.org/1999/xhtml'>
 	  <tr:postContent />
-	</div>
+	</xhtml:div>
    </content>
    <published><tr:postDateISO /></published>
    <updated><tr:postDateISO /></updated>