0

Resolved

Add the ability to be able to parse nested microformats.

description

Microformats can be nested, the framework must be able to handle these.
 
Each microformat should be configured as a top level configuration entity so that it can be re-used without having to specifiy repeated configuration.
 
For instance a hCard can contain an Adr, this Adr is a microformat in itself and there is no point redefining multiple times at the config level
 
The configuration should be something similar too:
 
<MicroformatsSection>
<Microformats>
<Microformat type="rel-tag" rootType="rel" root="tag" dataType="System.Uri" />
<Microformat type="hCard" rootType="class" root="vcard" dataType="System.String">
<Fields>
<Field name="fn" dataType="System.String" plurality="Singular"/>
<Field name="url" dataType="System.Uri" plurality="Singular"/>
<Field name="email" dataType="System.Uri" plurality="Singular"/>
<Field name="adr" dataType="Microformat" plurality="Singular"/> <!-- Specifies that a nested microformat is to be parsed -->
</Fields>
</Microformat>
<Microformat type="adr" rootType="class" root="adr" dataType="System.String">
<Fields>
<Field name="post-office-box" dataType="System.String" plurality="Singular"/>
<Field name="extended-address" dataType="System.String" plurality="Singular"/>
<Field name="street-address" dataType="System.String" plurality="Singular"/>
<Field name="locality" dataType="System.String" plurality="Singular"/>
<Field name="region" dataType="System.String" plurality="Singular"/>
<Field name="postal-code" dataType="System.String" plurality="Singular"/>
<Field name="country-name" dataType="System.String" plurality="Singular"/>
</Fields>
</Microformat>
</Microformats>
</MicroformatsSection>

comments