Microsummaries: Difference between revisions

(expanded with voluminous addl. info, including implementation details)
Line 27: Line 27:
Microsummaries can either be extracted from an RSS/Atom feed or generated by processing an XSLT stylesheet against the page being summarized.  In the latter case, the XSLT stylesheet and the pages to which it applies are provided by a microsummary definition.
Microsummaries can either be extracted from an RSS/Atom feed or generated by processing an XSLT stylesheet against the page being summarized.  In the latter case, the XSLT stylesheet and the pages to which it applies are provided by a microsummary definition.


A microsummary definitions is a set of instructions for generating microsummaries.  Definitions are expressed via an XML dialect with the namespace '''http://www.mozilla.org/microsummaries/0.1'''.  A definition consists of a <definition> tag containing the following attributes and child elements:
A microsummary definition is a set of instructions for generating microsummaries.  Definitions are expressed via an XML dialect with the namespace '''http://www.mozilla.org/microsummaries/0.1'''.  A definition consists of a <definition> tag containing the following attributes and child elements:


* an '''id''' attribute that uniquely identifies the definition.  The recommended format for the ID attribute is @[author]/[site]/[name], where [author] identifies the developer of the definition, [site] identifies the site to which the definition applies, and [name] describes the definition, for example: '''@mozilla.org/bbc.co.uk/latest-headline''';
* an '''id''' attribute that uniquely identifies the definition.  The recommended format for the ID attribute is @[author]/[site]/[name], where [author] identifies the developer of the definition, [site] identifies the site to which the definition applies, and [name] describes the definition, for example: '''@mozilla.org/bbc.co.uk/latest-headline''';
Line 65: Line 65:
    
    
   </definition>
   </definition>


== Specifying Microsummaries ==
== Specifying Microsummaries ==
Confirmed users
61

edits