[uf-dev] hAtom2Atom.xsl in PHP 5.2

Robert Bachmann rbach at rbach.priv.at
Wed Jan 31 17:35:01 PST 2007


Ryan King wrote:
> Has anyone gotten hAtom2Atom.xsl working with PHP 5.2? PHP 5 uses 
> libxml2, which is, I believe tested, but my script can't seem to find 
> any entries:
> [...]
> $html_doc->loadHTML($html);
Change this to "loadXML" because "loadHTML" drops the XHTML namespace [1].
Also note that h2a will say that the "updated" datetimes are invalid, this
is because they are lacking a timezone.


Regards,
-- 
Robert Bachmann <rbach at rbach.priv.at> (OpenPGP KeyID: 0x4A5CCF10)

 From hAtom2Atom.xsl:
    Your XHTML document must have the namespace "http://www.w3.org/1999/xhtml".
    If it does not or if your input document is written in HTML, filter it
    through "tidy -asxhtml" <http://tidy.sourceforge.net/> before
    processing it with hAtom2Atom.xsl.


More information about the microformats-dev mailing list