[uf-discuss] Re: Standardized Representation of Microformats
glenn.jones at madgex.com
Thu Apr 3 08:26:39 PST 2008
I would really like microformats community to come up with a
standardized JSON representation of microformat structures.
Over the last few weeks I have asked number of people involved with
microformats parsers if they were interested in a common JSON
description for output and the answer seems so far has been a strong
The main reason is that it could help us build shared test suite and
enable comparative testing between the parsers.
Just like the move by the IE team to publicly release their test suites
so that browser manufactures can start to coalesce around a testable
understanding of a specification. We should start to do the same for
microformat parsers. What we need first is a single output format to
test against. JSON seems to cross both client and server world well, so
it would be my choice.
It would also help people build applications more easily as they would
be able to switch from one parser/service to another and reuse code a
I am currently working on a test suite that uses a POSH pattern to
express JSON based asserts i.e.
NodeValue(vcard.url) = http://www.flickr.com/photos/glennjonesnet/
You can see an example here
This is ufxtract parsing the test
"test-fixture" POSH pattern then I run the asserts and get a pass/fail
This is all very early prototype work, but hopefully it shows the value
of standardized JSON representation of microformat structures.
More information about the microformats-discuss