changeset 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 e776701841ba
files templates/commentAtom.xml templates/postAtom.xml
diffstat 2 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/templates/commentAtom.xml	Mon Nov 05 09:23:40 2007 +0100
+++ b/templates/commentAtom.xml	Mon Nov 05 09:43:24 2007 +0100
@@ -1,14 +1,15 @@
 <?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='text'>
        <tr:postTitle /> - <tr:wrapper tr:id='auteur' />
    </title>
    <id>tag:defr.org,comment,2006:<tr:commentNumber /></id>
    <content type='xhtml'>
-   	<div xmlns='http://www.w3.org/1999/xhtml'>
+   	<xhtml:div xmlns='http://www.w3.org/1999/xhtml'>
 	  <tr:comment />
-	</div>
+	</xhtml:div>
    </content>
    <published><tr:commentDateISO /></published>
    <updated><tr:commentDateISO /></updated>
--- 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>