Hello, I would like to suggest microschema to improve interoperability of microformats.
An example of microformats hcard is as follows: <span class="tel"> <link rel="microschema" href="http://microformats.org/2007/hcard.rng" /> <span class="type">home</span> <span class="value">+1.415.555.1212</span> </span> The example is added "<link rel="microschema" href="http://microformats.org/2007/hcard.rng" />" to original hcard to declare using microschema. A microschema for the example above is as follows: <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <ref name="microformats.hcard"/> </start> <define name="microformats.hcard"> <element name="span"> <attribute name="class"> <value>tel</value> </attribute> <ref name="microschema.hcard"/> <element name="span"> <attribute name="class"> <value>type</value> </attribute> <choice> <value>pref</value> <value>work</value> <value>home</value> <value>voice</value> <value>fax</value> <value>msg</value> <value>cell</value> <value>pager</value> <value>bbs</value> <value>modem</value> <value>car</value> <value>isdn</value> <value>video</value> </choice> </element> <element name="span"> <attribute name="class"> <value>value</value> </attribute> <data type="string"> <param name="pattern">(\+|\-|\.|[0-9]+)+</param> </data> </element> </element> </define> <define name="microschema.hcard"> <element name="link"> <attribute name="rel"> <value>microschema</value> </attribute> <attribute name="href"> <value>http://microformats.org/2007/hcard.rng</value> </attribute> <empty/> </element> </define> </grammar> Anybody can confirm the validation of the example above by using Jing. I think microschema can improve the interoperability of microformats. How do you think about my suggestion? Best regards, -- Tatsuya Noyori (^o^)/ _______________________________________________ microformats-discuss mailing list [email protected] http://microformats.org/mailman/listinfo/microformats-discuss
