Maurits van Rees | 13 Nov 23:17
Picon
Favicon

basesyndication: xhtml content

Hi again,

The browser/atom.xml.pt file of basesyndication has this comment:

"This body below should really be xhtml instead of semi-encoded
possibly unescaped strange stuff."

According to
http://www.atomenabled.org/developers/syndication/#text
you can say the type is xhtml and wrap a div around the text that you
want in there.  Current content tag of an entry:

     <content type="html" xml:base="" xml:lang="en-US" xml:space="preserve"
              tal:attributes="xml:base feed/getBaseURL">
         <tal:block tal:replace="structure string:&lt;![CDATA["/>
         <tal:block tal:replace="structure feedentry/getBody"/>
         <tal:block tal:replace="structure string:]]&gt;"/>
      </content>

The changes would make the content tag look like this:

      <content type="xhtml" xml:base="" xml:lang="en-US" xml:space="preserve"
               tal:attributes="xml:base feed/getBaseURL">
        <div xmlns="http://www.w3.org/1999/xhtml">
          <tal:block tal:replace="structure feedentry/getBody"/>
        </div>
      </content>

I'm not sure about that xml base, lang and space, but that's how the
page template currently looks.

Well, this works for me.  Thoughts?

--

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

Gmane