49
edits
(updated links to point to people.mozilla.org) |
m (→Microsummary Generators: <nowiki> things that shouldn't be links) |
||
Line 28: | Line 28: | ||
Microsummaries can either be provided by the page being summarized or generated by processing an XSLT stylesheet against the page. In the latter case, the XSLT stylesheet and the page(s) to which it applies are provided by a microsummary generator. | Microsummaries can either be provided by the page being summarized or generated by processing an XSLT stylesheet against the page. In the latter case, the XSLT stylesheet and the page(s) to which it applies are provided by a microsummary generator. | ||
A microsummary generator is a set of instructions for generating microsummaries. Generators are expressed via an XML dialect with the namespace '''http://www.mozilla.org/microsummaries/0.1'''. A generator consists of a <generator> tag containing the following attributes and child elements: | A microsummary generator is a set of instructions for generating microsummaries. Generators are expressed via an XML dialect with the namespace '''<nowiki>http://www.mozilla.org/microsummaries/0.1</nowiki>'''. A generator consists of a <generator> tag containing the following attributes and child elements: | ||
* a '''name''' attribute that identifies the generator to users, f.e. '''Latest BBC Headline'''; | * a '''name''' attribute that identifies the generator to users, f.e. '''Latest BBC Headline'''; | ||
Line 39: | Line 39: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="Yahoo! Finance Stock Quote"> | <generator xmlns="<nowiki>http://www.mozilla.org/microsummaries/0.1</nowiki>" name="Yahoo! Finance Stock Quote"> | ||
<pages> | <pages> | ||
<include>http://finance.yahoo.com/q\?.*s=[a-zA-Z]+</include> | <include><nowiki>http://finance.yahoo.com/q\?.*s=[a-zA-Z]+</nowiki></include> | ||
</pages> | </pages> | ||
<template> | <template> | ||
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | <xsl:transform xmlns:xsl="<nowiki>http://www.w3.org/1999/XSL/Transform</nowiki>" version="1.0"> | ||
<xsl:output method="text"/> | <xsl:output method="text"/> | ||
<xsl:template match="/"> | <xsl:template match="/"> |
edits