Hi everybody,

the XEP-0277 states the following:

The post content itself can be either text (content element without "type" attribute or with "type" attribute with "text" value) or XHTML ("content" element "type" attribute with "xhtml" value). If Romeo publishes XHTML content, his client MUST publish two "content" elements: a text one, and a XHTML one. For XHTML publishing, see Publish-Subscribe (XEP-0060) [10].

But I can't find any special indication in the XEP-0060 to do this.
I would go for something like that:

        <entry>
          <title type='text'>xxx</title>
          <title type='xhtml'><div>xxx</div></title>
          <content type='text'>yyy</content>
          <content type='xhtml'><div>yyy</div></content>
        </entry>

Would you do it also this way? (this is not compatible with the Atom specification: one and only one "title" element, 0 or 1 "content" element...).

Thanks,
Adrien

Reply via email to