From david at visitnorthwest.com Fri Apr 9 09:03:08 2010 From: david at visitnorthwest.com (Visit North West) Date: Fri Apr 9 10:07:04 2010 Subject: [uf-dev] Microformats implementation - I'd really value your opinion Message-ID: Hi I'm new to microformats and would sincerely appreciate if somebody could spare a couple of minutes to give me their valuable opinion on a proposed implementation of microformats. I wouldn't even call myself a programmer so please forgive any errors. I've done a test page and obvious want to make sure everything is ok before I implement microformats sitewide: http://www.visitnorthwest.com/manchester/abc.htm It's a review of a hotel/booking page. My main points are: * Hreview - Because of the way the page is already structured I've had to wrap hreview around columns 2 and 3. This takes in some superfluous information (i.e Popular hotels in Manchester) but I can't see a way around it without changing the structure of the page - which is pretty undesirable for this site as its about 4000 pages * All the address info, review info is contained within the info box in column 3
, the 'description' itself is before this in column 2. * Address info - I've not put the country in as it's a UK site and fairly obvious to readers. Is country info necessary, especially with regard to search engines? * Photos - I've assigned image class 'photo' to each photo. Is anything else necessary? Google's rich snippet tool seems to like it, although it doesn't pick up any image info http://www.google.com/webmasters/tools/richsnippets Please let me know if there is anything different you would do. Thanks in advance for your help. Kind regards David Mottershead | Visit North West -------------- next part -------------- An HTML attachment was scrubbed... URL: http://microformats.org/discuss/mail/microformats-dev/attachments/20100409/b0cc7032/attachment-0001.html From michael at matterform.com Mon Apr 12 15:47:03 2010 From: michael at matterform.com (Michael Herrick) Date: Mon Apr 12 15:47:10 2010 Subject: [uf-dev] hAtom2Atom.xsl PHP implementation Message-ID: I'm wondering if anyone has a PHP 5 implementation of hAtom2Atom. I'm trying to use the stylesheet, which I got from rbach.priv.at/hAtom/, with the PHP 5 xsl methods, but I'm just missing something. Probably something simple. I could keep banging on it, but was hoping someone could give me a nudge in the right direction. Here's what I've written so far: $xsl_doc = new DOMDocument(); $xsl_doc->load('http://mybeautifulride.com/hAtom2Atom.xsl'); $xsl = new XSLTProcessor(); $xsl->importStyleSheet($xsl_doc); $html_doc = new DOMDocument(); $html = file_get_contents('http://mybeautifulride.com/custom_car_blog/'); $html_doc->loadXML($html); $str = $xsl->transformToXML($html_doc); echo $str; But it blows up when I call $xsl->importStyleSheet, like so: Warning: XSLTProcessor::importStylesheet(http://mybeautifulride.com/uri.xsl) [xsltprocessor.importstylesheet]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /usr/home/test.voltairepowered.com/voltaire-dev/plugins/news/app.php on line 67 Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: I/O warning : failed to load external entity "http://mybeautifulride.com/uri.xsl" in /usr/home/test.voltairepowered.com/voltaire-dev/plugins/news/app.php on line 67 ....followed by quite a few more errors that probably aren't relevant if I can get the import to work correctly. I think I need to load some parameters, configure something in the stylesheet, or download some dependency files. Or something. Thanks everyone. I've been using Luke Arno's hAtom2Atom proxy but I think it's time I rolled my own and saved the man some bandwidth. If I can get this going, I plan to set up another public proxy like Luke's so other people can benefit. Michael From scott at randomchaos.com Mon Apr 12 18:06:05 2010 From: scott at randomchaos.com (Scott Reynen) Date: Mon Apr 12 18:06:15 2010 Subject: [uf-dev] hAtom2Atom.xsl PHP implementation In-Reply-To: References: Message-ID: <19FD5C89-6EFB-4BF9-9557-4B69AB3CDD64@randomchaos.com> On Apr 12, 2010, at 4:47 PM, Michael Herrick wrote: > I'm wondering if anyone has a PHP 5 implementation of hAtom2Atom. I haven't, but it looks like your problem is with some missing files. I'm guessing you downloaded hAtom2Atom.xsl from the "Download the latest version" link, which doesn't mention it needs two extra files to work, but these two lines seem to indicate it does: Following one directory up on rbach.priv.at, looks like you can find the relevant documents here: http://rbach.priv.at/Microformats/datetime.xsl http://rbach.priv.at/Microformats/uri.xsl Peace, Scott From mail at tobyinkster.co.uk Fri Apr 16 15:35:16 2010 From: mail at tobyinkster.co.uk (Toby Inkster) Date: Fri Apr 16 15:36:38 2010 Subject: [uf-dev] Re: Perl module - HTML::Microformats In-Reply-To: <1269164757.8745.36.camel@ophelia2.g5n.co.uk> References: <1266654664.14928.12.camel@ophelia2.g5n.co.uk> <03cf8d8e39c7aef21865069627f7ca08.squirrel@goddamn.co.uk> <1267406263.15017.35.camel@ophelia2.g5n.co.uk> <1268178894.19575.16.camel@ophelia2.g5n.co.uk> <1269164757.8745.36.camel@ophelia2.g5n.co.uk> Message-ID: <20100416233516.7212c084@miranda.g5n.co.uk> On Sun, 21 Mar 2010 09:45:57 +0000 Toby Inkster wrote: > http://search.cpan.org/~tobyink/HTML-Microformats/ Just uploaded 0.00_06 (though it may take a while to reach all CPAN's mirrors). It includes support for hReview-aggregate, hAudio, hListing and hProduct. -- Toby A Inkster From mail at tobyinkster.co.uk Thu Apr 29 15:55:35 2010 From: mail at tobyinkster.co.uk (Toby Inkster) Date: Thu Apr 29 15:56:53 2010 Subject: [uf-dev] HTML::Microformats 0.00_08 Message-ID: <20100429235535.7d11c4ba@miranda.g5n.co.uk> The only major change is to add support for these profile URIs: http://microformats.org/profile/specs http://ufs.cc/x/specs There are a few other internal changes which don't effect end users, but were designed to support... XML::Atom::Microformats 0.00_02 Which is a new module that goes through an Atom feed, parsing the content of each entry for Microformats. I'd like a bit of feedback here: right now I'm looking at the Atom element, but would make more sense? -- Toby A Inkster From tantek at cs.stanford.edu Thu Apr 29 19:18:03 2010 From: tantek at cs.stanford.edu (Tantek Celik) Date: Thu Apr 29 19:18:15 2010 Subject: [uf-dev] HTML::Microformats 0.00_08 In-Reply-To: <20100429235535.7d11c4ba@miranda.g5n.co.uk> References: <20100429235535.7d11c4ba@miranda.g5n.co.uk> Message-ID: <1076252957-1272593884-cardhu_decombobulator_blackberry.rim.net-1473778419-@bda088.bisx.prod.on.blackberry> This is great news - thanks Toby! In answer to your question: > I'd like a bit of feedback here: right now I'm looking at the Atom element, but would make more sense? In my opinion if it is there, and if not, then . Anecdotally on feeds with both, I have often seen used with a short bit of plain text, with richer, more structured/semantic markup in the . Make sense? This is a good question and I think it is worth writing up in a page on the wiki like: http://microformats.org/wiki/atom-faq Or perhaps in a new "Atom" section on http://microformats.org/wiki/parsing (Nice work on http://microformats.org/wiki/parsing-brainstorming btw - I just re-read it.) Tantek -----Original Message----- From: Toby Inkster Date: Thu, 29 Apr 2010 23:55:35 To: Subject: [uf-dev] HTML::Microformats 0.00_08 The only major change is to add support for these profile URIs: http://microformats.org/profile/specs http://ufs.cc/x/specs There are a few other internal changes which don't effect end users, but were designed to support... XML::Atom::Microformats 0.00_02 Which is a new module that goes through an Atom feed, parsing the content of each entry for Microformats. I'd like a bit of feedback here: right now I'm looking at the Atom element, but would make more sense? -- Toby A Inkster _______________________________________________ microformats-dev mailing list microformats-dev@microformats.org http://microformats.org/mailman/listinfo/microformats-dev