[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AtomPub in XHTML?



Anyone have advice on embedding AtomPub elements in XHTML -- I am
specifically interested in link@rel="edit"?

I'd like to enable a small javascript AtomPub client to update
Atom-based entries in a CMS.  It's all running on the same server, so
same-domain policy is not an issue.

My current choices are:

<head>
     <link rel="edit" type="application/atom+xml"
href="http://example.org/xxx/00123.atom"/>
</head

(not valid xhtml, but atompub-ish)

OR

<body>
    <a href="http://example.org/xxx/00123.atom"; id="editLink">edit</a>
</body>

(valid xhtml, but completely non-standard, etc.)

I didn't see anything in hAtom microformat that suggested common practice.

--peter keane