[uf-dev] hAtom2Atom.xsl in PHP 5.2

Ryan King ryan at technorati.com
Wed Jan 31 13:25:33 PST 2007


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:
<?php
$xsl_doc = new DOMDocument();
$xsl_doc->load('http://rbach.priv.at/hAtom2Atom/hAtom2Atom.xsl');
$xsl = new XSLTProcessor();
$xsl->importStyleSheet($xsl_doc);
$html_doc = new DOMDocument();
$html = file_get_contents('http://microformats.org/');
$html_doc->loadHTML($html);
$str = $xsl->transformToXML($html_doc);
echo $str;
?>
Yields:
Warning: XSLTProcessor::transformToXml(): ERROR: No hAtom feeds and 
hAtom entries were found. in /Users/ryan/microformats/- on line 13
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by: $Id: hAtom2Atom.xsl 45 2006年06月05日 17:09:22Z 
RobertBachmann $ -->
-ryan
--
Ryan King
ryan at technorati.com


More information about the microformats-dev mailing list

AltStyle によって変換されたページ (->オリジナル) /