diff options
author | Shaun McCance <shaunm@gnome.org> | 2008-11-03 21:17:17 -0600 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2009-04-19 11:13:07 -0500 |
commit | 838d94e15f7b7f185c191abbd88ae1611ec5e7e0 (patch) | |
tree | bd6bd6cc79c5f66fca8d6615244e80fb6dae25a9 /sandbox | |
parent | e913321def8b19ca8f09c34d4a9093919210eb00 (diff) | |
download | gnome-doc-utils-838d94e15f7b7f185c191abbd88ae1611ec5e7e0.tar.gz |
Moved some mallard files into the main layout
Diffstat (limited to 'sandbox')
72 files changed, 0 insertions, 4887 deletions
diff --git a/sandbox/mallard/spec/10minutes.xml b/sandbox/mallard/spec/10minutes.xml deleted file mode 100644 index 37a9ffa..0000000 --- a/sandbox/mallard/spec/10minutes.xml +++ /dev/null @@ -1,28 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="10minutes"> - -<info> - <desc>Create a multiple-page document in only ten minutes</desc> - - <link type="guide" xref="spec" weight="1"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Ten Minute Tour</title> - -<comment> - <cite date="2007-01-30"><name>Shaun McCance</name></cite> - <p>Add content</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/Makefile b/sandbox/mallard/spec/Makefile deleted file mode 100644 index 26747d0..0000000 --- a/sandbox/mallard/spec/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -pages=$(filter-out legal.xml, $(wildcard *.xml)) - -.PHONY: check-validate check-links status-report - -check-validate: - @(cd ../rng/ && $(MAKE) mallard.rnc) - xmllint --xinclude --noout --relaxng ../rng/mallard.rng $(pages) - -check-links: - @files=$$(for page in $(pages); do \ - xml sel -t -m "//*[@xref and contains(@xref, '#')]" \ - -v "substring-before(@xref, '#')" -n "$$page"; \ - xml sel -t -m "//*[@xref and not(contains(@xref, '#'))]" \ - -v "@xref" -n "$$page"; \ - done | sort -u); \ - for file in $$files; do \ - if [ ! -f "$$file.xml" -a ! -f "$$file.TODO" ]; then \ - echo "$$file not found"; \ - exit 1; \ - fi; \ - done; - -status_xslt='<xsl:stylesheet version="1.0" \ - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \ - xmlns:mal="http://www.gnome.org/~shaunm/mallard"> \ -<xsl:output method="text"/> \ -<xsl:param name="base"/> \ -<xsl:template match="/"> \ - <xsl:variable name="version" select="*/mal:info/mal:version"/> \ - <xsl:if test="not($$version)"> \ - <xsl:value-of select="$$base"/> \ - <xsl:text>: none&\#x000A;</xsl:text> \ - </xsl:if> \ - <xsl:for-each select="$$version"> \ - <xsl:sort select="@date" date-type="text" order="descending"/> \ - <xsl:if test="position() = 1"> \ - <xsl:value-of select="$$base"/> \ - <xsl:text>: </xsl:text> \ - <xsl:choose> \ - <xsl:when test="@status"> \ - <xsl:value-of select="@status"/> \ - <xsl:text>&\#x000A;</xsl:text> \ - </xsl:when> \ - <xsl:otherwise> \ - <xsl:text>none&\#x000A;</xsl:text> \ - </xsl:otherwise> \ - </xsl:choose> \ - </xsl:if> \ - </xsl:for-each> \ -</xsl:template> \ -</xsl:stylesheet>' - -status-report: - @for page in $(pages); do \ - base=`echo "$$page" | sed -e 's/.xml$$//'`; \ - echo $(status_xslt) | xsltproc --stringparam base "$$base" - "$$page"; \ - done diff --git a/sandbox/mallard/spec/TODO b/sandbox/mallard/spec/TODO deleted file mode 100644 index 49458f7..0000000 --- a/sandbox/mallard/spec/TODO +++ /dev/null @@ -1,21 +0,0 @@ -intro text: -- what it is -- what it isn't -- in what elements it's used -- what content is valid, if simple - -sections: -- content: Content -- attributes: Attributes -- examples: Examples -- best: Best Practices -- design: Design Notes -- processing: Processing Expectations -- html: Comparison to HTML -- docbook: Comparison to DocBook - -display environments: -- rich display -- terminal -- print -- aural diff --git a/sandbox/mallard/spec/explore.xml b/sandbox/mallard/spec/explore.xml deleted file mode 100644 index 91a84f6..0000000 --- a/sandbox/mallard/spec/explore.xml +++ /dev/null @@ -1,27 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="explore"> -<info> - <desc>Explore more of what Mallard has to offer</desc> - - <link type="guide" xref="spec" weight="1"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Explore Mallard</title> - -<comment> - <cite date="2007-02-22"><name>Shaun McCance</name></cite> - <p>Add content</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/figures/mallard.png b/sandbox/mallard/spec/figures/mallard.png Binary files differdeleted file mode 100644 index 0ed0645..0000000 --- a/sandbox/mallard/spec/figures/mallard.png +++ /dev/null diff --git a/sandbox/mallard/spec/legal.xml b/sandbox/mallard/spec/legal.xml deleted file mode 100644 index 1760c72..0000000 --- a/sandbox/mallard/spec/legal.xml +++ /dev/null @@ -1,9 +0,0 @@ -<license xmlns="http://www.gnome.org/~shaunm/mallard" - href="http://www.gnu.org/licenses/fdl.txt"> -<p>Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.2 or any -later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the -license is included on the page -<link xref="gfdl">GNU Free Documentation License</link>.</p> -</license> diff --git a/sandbox/mallard/spec/mal_TODO.xml b/sandbox/mallard/spec/mal_TODO.xml deleted file mode 100644 index 02bd78d..0000000 --- a/sandbox/mallard/spec/mal_TODO.xml +++ /dev/null @@ -1,11 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_TODO"> -<info> -</info> - -<title>TODO</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_attr_link.xml b/sandbox/mallard/spec/mal_attr_link.xml deleted file mode 100644 index 5398221..0000000 --- a/sandbox/mallard/spec/mal_attr_link.xml +++ /dev/null @@ -1,36 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_attr_link"> - -<info> - <link type="guide" xref="mal_inline" weight="1"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>Ubiquitous Linking</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_attr_link = - ( attribute xref { text } ? - | { attribute dref { text } ?, attribute href { text } ? } - ) -</code></synopsis> - -<comment> - <cite date="2006-11-16"><name>Shaun McCance</name></cite> - <p>The content model is perhaps not as clearly expressed as it could be. - The <code>ref</code> attribute may need to be renamed. The idea is that - we can have a reference to a document within a help system, with a defined - fallback to something on the web with <code>href</code>.</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_block.xml b/sandbox/mallard/spec/mal_block.xml deleted file mode 100644 index 569a11a..0000000 --- a/sandbox/mallard/spec/mal_block.xml +++ /dev/null @@ -1,64 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="mal_block"> - -<info> - <link type="guide" xref="spec"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="incomplete"/> -</info> - -<title>Block Elements</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block = - ( <link xref="mal_block_comment">mal_block_comment</link> - | <link xref="mal_block_figure">mal_block_figure</link> - | <link xref="mal_block_media">mal_block_media</link> - | <link xref="mal_block_note">mal_block_note</link> - | <link xref="mal_block_synopsis">mal_block_synopsis</link> - | <link xref="mal_list">mal_list</link> - | <link xref="mal_table">mal_table</link> - | <link xref="#simple">mal_block__simple</link> - ) -</code></synopsis> - -<comment> - <cite date="2006-11-16"><name>Shaun McCance</name></cite> - <p>Add some intro text</p> -</comment> - - -<!-- BEGIN simple --> -<section id="simple"> -<title>Simple Block Elements</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block__simple = - ( <link xref="mal_block_code">mal_block_code</link> - | <link xref="mal_block_p">mal_block_p</link> - | <link xref="mal_block_screen">mal_block_screen</link> - ) -</code></synopsis> - -</section> -<!-- END simple --> - - -<!-- BEGIN containers --> -<section id="containers"> -<title>Block Container Elements</title> - -</section> -<!-- END containers --> - -</page> diff --git a/sandbox/mallard/spec/mal_block_code.xml b/sandbox/mallard/spec/mal_block_code.xml deleted file mode 100644 index 3b80a55..0000000 --- a/sandbox/mallard/spec/mal_block_code.xml +++ /dev/null @@ -1,66 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_code"> - -<info> - <link type="guide" xref="mal_block#simple"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Code Blocks</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_code = element code { - attribute mime { text } ?, - <link xref="mal_inline">mal_inline</link> -}</code></synopsis> - -<comment> - <cite date="2006-12-08"><name>Shaun McCance</name></cite> - <p>Add intro material.</p> -</comment> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add examples.</p> - </comment> -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add processing expectations. For block, strip leading/trailing - newline. Do not strip leading indentation.</p> - </comment> -</section> -<!-- END processing --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <title>Comparison to DocBook</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add: code, class*, func*, programlisting</p> - </comment> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_block_comment.xml b/sandbox/mallard/spec/mal_block_comment.xml deleted file mode 100644 index d4799f6..0000000 --- a/sandbox/mallard/spec/mal_block_comment.xml +++ /dev/null @@ -1,62 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_comment"> - -<info> - <link type="guide" xref="mal_block#containers"/> - <link type="seealso" xref="mal_cite"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="incomplete"/> -</info> - -<title>Editorial Comments</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_comment = element comment { - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_cite">mal_cite</link>, - <link xref="mal_block#simple">mal_block__simple</link> +, - mal_block_comment* -} -</code></synopsis> - -<p>The <code>comment</code> element allows you to insert editorial comments -into your document. These comments are intended to be displayed only when -editing or reviewing the document, and not when the document is viewed by the -end reader. A <code>comment</code> element can contain other <code>comment</code> -elements, allowing you to have a threaded discussion inside editorial comments.</p> - -<p>A <code>comment</code> element may optionally contain a -<code xref="mal_title">title</code> element to provide a brief description -of the subject of the comment. Titles are encouraged in top-level comments; -however, they are usually unnecessary in replies.</p> - -<!-- FIXME -<p>The <code xref="mal_credit">credit</code> element is a required element -that specifies the person making the comment. The content model for the -<code>credit</code> element is specified in <link xref="mal_credit"/>, but -the element is listed here explicitly to prohimit the <code>type</code> -attribute. Writers are highly encouraged to provide a <code xref="mal_date">mal_date</code> -</p> ---> - -<comment> - <cite date="2006-11-16"><name>Shaun McCance</name></cite> - <p>Add examples, processing expectations</p> - - <comment> - <cite date="2007-01-23"><name>Shaun McCance</name></cite> - <p>This is a test of nested comments.</p> - </comment> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_block_figure.xml b/sandbox/mallard/spec/mal_block_figure.xml deleted file mode 100644 index 5fd7edd..0000000 --- a/sandbox/mallard/spec/mal_block_figure.xml +++ /dev/null @@ -1,25 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_figure"> -<info> - <link type="guide" xref="mal_block#containers"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Figures</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_figure = element figure { - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_block#simple">mal_block__simple</link> *, - <link xref="mal_block_media">mal_block_media</link> *, - <link xref="mal_caption">mal_caption</link> ? -} -</code></synopsis> - -<comment> - <cite date="2006-11-16"><name>Shaun McCance</name></cite> - <p>Add explanation, examples, processing expectations</p> - <p>A way to float right, a'la wikipedia?</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_block_media.xml b/sandbox/mallard/spec/mal_block_media.xml deleted file mode 100644 index 06b28e5..0000000 --- a/sandbox/mallard/spec/mal_block_media.xml +++ /dev/null @@ -1,18 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_media"> -<info> - <link type="guide" xref="mal_block"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Multimedia Objects</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_media = element media { - attribute type { text } ?, - attribute mime { text } ?, - attribute href { text } -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_block_note.xml b/sandbox/mallard/spec/mal_block_note.xml deleted file mode 100644 index 90fd8cc..0000000 --- a/sandbox/mallard/spec/mal_block_note.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_note"> -<info> - <link type="guide" xref="mal_block#containers"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Notes</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_note = element note { - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_block#simple">mal_block__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_block_p.xml b/sandbox/mallard/spec/mal_block_p.xml deleted file mode 100644 index b37400d..0000000 --- a/sandbox/mallard/spec/mal_block_p.xml +++ /dev/null @@ -1,63 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_p"> -<info> - <link type="guide" xref="mal_block#simple"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Paragraphs</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_p = element p { - <link xref="mal_inline">mal_inline</link> -} -</code></synopsis> - -<p>The most basic block-level element in Mallard is the <code>p</code> -element. The <code>p</code> element creates a paragraph in the formatted -outout.</p> - -<comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add some more description.</p> -</comment> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add examples.</p> - </comment> -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add processing expectations. Very basic. Mention margins and - indentation as means of demarkating paragraphs. Explicitly mention - the no-block-nesting thing.</p> - </comment> -</section> -<!-- END processing --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <title>Comparison to DocBook</title> - <p>The <code>p</code> element in Mallard appears to be equivalent to to the - <code href="http://www.docbook.org/tdg/en/html/para.html">para</code> element - in DocBook. While both elements create a paragraph in the formatted output, - the <code>p</code> element in Mallard is actually much more restrictive, as it - does not permit nested block content. In this regard, it is actaully similar - to the <code href="http://www.docbook.org/tdg/en/html/simpara.html">simpara</code> - element in DocBook.</p> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_block_quote.xml b/sandbox/mallard/spec/mal_block_quote.xml deleted file mode 100644 index 06d4701..0000000 --- a/sandbox/mallard/spec/mal_block_quote.xml +++ /dev/null @@ -1,24 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_quote"> -<info> - <link type="guide" xref="mal_block"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Quotes</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_quote = element quote { - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_block#simple">mal_block__simple</link> +, - <link xref="mal_caption">mal_caption</link> ? -} -</code></synopsis> - -<comment> - <cite date="2007-02-21"><name>Shaun McCance</name></cite> - <p>render quotes around inline</p> - <p>style="epipgraph"</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_block_screen.xml b/sandbox/mallard/spec/mal_block_screen.xml deleted file mode 100644 index a89e757..0000000 --- a/sandbox/mallard/spec/mal_block_screen.xml +++ /dev/null @@ -1,23 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_screen"> - -<info> - <link type="guide" xref="mal_block#simple"/> - - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Screens</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_screen = element screen { - <link xref="mal_inline">mal_inline</link> + -} -</code></synopsis> - -<comment> - <cite date="2006-11-08"><name>Shaun McCance</name></cite> - <p>Add intro, examples, and processing expectations.</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_block_synopsis.xml b/sandbox/mallard/spec/mal_block_synopsis.xml deleted file mode 100644 index e7460ee..0000000 --- a/sandbox/mallard/spec/mal_block_synopsis.xml +++ /dev/null @@ -1,44 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_block_synopsis"> - -<info> - <link type="guide" xref="mal_block#containers"/> - <version number="0.1" date="2007-02-21" status="incomplete"/> -</info> - -<title>Synopses</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_block_synopsis = element synopsis { - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_block#simple">mal_block__simple</link> + -} -</code></synopsis> - -<p>The <code>synopsis</code> element allows you to mark up a block as -providing an overview of the material being presented. It is useful -for providing a listing of functions, commands, or options in reference -material, or for enumerating the items in a menu or other graphical -control element.</p> - -<comment> - <cite date="2006-11-16"><name>Shaun McCance</name></cite> - <p>Add explanation, examples</p> -</comment> - -<section> - <title>Processing Expectations</title> - - <p>A <code>synopsis</code> element is rendered as a displayed block, - with each of its child elements interpreted as block elements. Since - a <code>synopsis</code> element often contains large blocks, and is - generally offset from the running text, processing tools may opt to - render it inside a colored or screened box, with a border, or - otherwise differently from the surrounding text.</p> - - <p>If a <code xref="mal_title">title</code> element is provided, it - should appear at the top of the block and be clearly marked as the - title using font variations or other stylistic means.</p> -</section> - -</page> diff --git a/sandbox/mallard/spec/mal_caption.xml b/sandbox/mallard/spec/mal_caption.xml deleted file mode 100644 index 968b8f3..0000000 --- a/sandbox/mallard/spec/mal_caption.xml +++ /dev/null @@ -1,86 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_caption"> -<info> - <link type="guide" xref="mal_block"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> - - <version number="0.1" date="2007-02-05" status="draft"/> -</info> - -<title>Captions</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_caption = element caption { - <link xref="mal_inline">mal_inline</link> + -} -</code></synopsis> - -<p>The <code>caption</code> element marks a short text caption at the -bottom of a <link xref="mal_figure">figure</link>. Captions provide -a short textual description of the contents of the figure, often an -image. Captions are simple block elements that can contain all -general <link xref="mal_inline">inline content</link>.</p> - -<comment> - <cite date="2007-02-02"><name>Shaun McCance</name></cite> - <p>also appears in table</p> -</comment> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - - <p>More exaples of figures can be found on the page <link xref="mal_figure"/>.</p> - - <code><![CDATA[ -<figure> - <media type="image" mime="image/png" href="figures/mallard.png"/> - <caption>Drake, the Mallard mascot</caption> -</figure> -]]></code> - <figure> - <media type="image" mime="image/png" href="figures/mallard.png"/> - <caption>Drake, the Mallard mascot</caption> - </figure> - - <comment> - <cite date="2007-02-06"><name>Shaun McCance</name></cite> - <p>Maybe add an example with a non-image figure? Should we even allow these?</p> - </comment> -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - - <p>The exact display of a caption will depend on how the enclosing figure is - displayed. A caption is a block of text that should be displayed directly - below the normal contents of the enclosing figure.</p> - - <p>Display tools should attempt to display the caption in a way that makes it - clear that it belongs to the enclosing figure. For example, if a display tool - draws a frame around the enclosing figure, it may choose to place the caption - inside that frame. If the figure is indented from its enclosing block, the - caption should also be at the same indentation level.</p> - - <p>Captions are typically displayed directly below the normal contents of the - enclosing figure, with very little vertical space above them. If the enclosing - figure contains content other than images, then display tools should be careful - to ensure the caption is not confused with the normal figure content.</p> -</section> -<!-- END processing --> - -</page> diff --git a/sandbox/mallard/spec/mal_cite.xml b/sandbox/mallard/spec/mal_cite.xml deleted file mode 100644 index 04e351b..0000000 --- a/sandbox/mallard/spec/mal_cite.xml +++ /dev/null @@ -1,43 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_cite"> -<info> - <link type="guide" xref="mal_block"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-08" status="draft"/> - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> -</info> - -<title>Citations</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_cite = element cite { - attribute date { xsd:date } ?, - element name { <link xref="mal_inline">mal_inline__text</link> + }, - element email { <link xref="mal_inline">mal_inline__text</link> + } ? -} -</code></synopsis> - -<comment> - <cite date="2007-02-08"><name>Shaun McCance</name></cite> - <p>Possibly add source for block quote citations.</p> -</comment> - -<p>The <code>cite</code> element provides information about the source of a -<code xref="mal_quote">quote</code> or a <code xref="mal_block_comment">comment</code> -element.</p> - -<comment> - <cite date="2007-02-08"><name>Shaun McCance</name></cite> - <p>Add examples, processing expectations.</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_info.xml b/sandbox/mallard/spec/mal_info.xml deleted file mode 100644 index 11c83fe..0000000 --- a/sandbox/mallard/spec/mal_info.xml +++ /dev/null @@ -1,44 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info"> - -<info> - <link type="guide" xref="spec_pages"/> - <version number="0.1" date="2008-02-21" status="stub"/> -</info> - -<title>Page Information</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info = element info { - element title { - attribute type { text }, - attribute role { text } ?, - <link xref="mal_inline">mal_inline</link> - } * -& <link xref="mal_info_desc">mal_info_desc</link> ? -& <link xref="mal_info_link">mal_info_link</link> * -& <link xref="mal_info_credit">mal_info_credit</link> * -& <link xref="mal_info_copyright">mal_info_copyright</link> * -& <link xref="mal_info_license">mal_info_license</link> * -& <link xref="mal_info_version">mal_info_version</link> * -} -</code></synopsis> -<!-- -credit (type) -credit/date -credit/email -credit/name - -copyright -copyright/date -copyright/name - -link (guide/page/seealso) - -? version number date -? license -? notice -? desc -? keyword ---> -</page> diff --git a/sandbox/mallard/spec/mal_info_copyright.xml b/sandbox/mallard/spec/mal_info_copyright.xml deleted file mode 100644 index 8ac5905..0000000 --- a/sandbox/mallard/spec/mal_info_copyright.xml +++ /dev/null @@ -1,31 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info_copyright"> - -<info> - <link type="guide" xref="spec_info"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> - - <version number="0.1" date="2007-02-23" status="stub"/> -</info> - -<title>Copyright Information</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_copyright = element copyright { - element year { text } +, - element name { <link xref="mal_inline">mal_inline__text</link> + }, - element email { <link xref="mal_inline">mal_inline__text</link> + } ? -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_info_credit.xml b/sandbox/mallard/spec/mal_info_credit.xml deleted file mode 100644 index 2966aa8..0000000 --- a/sandbox/mallard/spec/mal_info_credit.xml +++ /dev/null @@ -1,27 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info_credit"> -<info> - <link type="guide" xref="spec_info"/> - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Credits</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_credit = element credit { - attribute type { - "author" | "editor" | - "maintainer" | "collaborator" | - "translator" | "publisher" }, - attribute date { xsd:date } ?, - element name { <link xref="mal_inline">mal_inline__text</link> + }, - element email { <link xref="mal_inline">mal_inline__text</link> + } ? -} -</code></synopsis> - -<comment> - <cite date="2007-01-22"><name>Shaun McCance</name></cite> - <p>Add examples, processing expectations</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_info_desc.xml b/sandbox/mallard/spec/mal_info_desc.xml deleted file mode 100644 index 0db0644..0000000 --- a/sandbox/mallard/spec/mal_info_desc.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info_desc"> -<info> - <version number="0.1" date="2007-02-23" status="stub"/> - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> - <link type="guide" xref="spec_info"/> -</info> - -<title>FIXME</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_desc = element desc { - <link xref="mal_inline">mal_inline</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_info_license.xml b/sandbox/mallard/spec/mal_info_license.xml deleted file mode 100644 index d47004e..0000000 --- a/sandbox/mallard/spec/mal_info_license.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_license"> -<info> - <link type="guide" xref="spec_info"/> - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>License Information</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_license = element license { - attribute href { text } ?, - <link xref="mal_block#simple">mal_block__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_info_link.xml b/sandbox/mallard/spec/mal_info_link.xml deleted file mode 100644 index cc15bc7..0000000 --- a/sandbox/mallard/spec/mal_info_link.xml +++ /dev/null @@ -1,31 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info_link"> -<info> - <link type="guide" xref="mal_inline"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Hyperlinks</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_link = element link { - attribute type { "guide" | "topic" | "seealso" }, - attribute xref { text }, - attribute weight { text } ? -} -</code></synopsis> - -<!-- BEGIN ubiquitous --> -<section id="ubiquitous"> - <title>Ubiquitous Linking</title> - - <synopsis><code mime="application/relax-ng-compact-syntax"> -mal_link_attr = ( - attribute xref { text } | - attribute href { text } ) -</code></synopsis> - -</section> -<!-- END ubiquitous --> - -</page> diff --git a/sandbox/mallard/spec/mal_info_version.xml b/sandbox/mallard/spec/mal_info_version.xml deleted file mode 100644 index 5617909..0000000 --- a/sandbox/mallard/spec/mal_info_version.xml +++ /dev/null @@ -1,20 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_info_version"> -<info> - <link type="guide" xref="spec_info"/> - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Version Information</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_info_version = element version { - attribute number { text } ?, - attribute date { xsd:date } ?, - attribute status { "stub" | "incomplete" | "draft" | "review" | "final" } ?, - <link xref="mal_title">mal_title</link> ?, - <link xref="mal_info_desc">mal_info_desc</link> ? -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline.xml b/sandbox/mallard/spec/mal_inline.xml deleted file mode 100644 index 1804d31..0000000 --- a/sandbox/mallard/spec/mal_inline.xml +++ /dev/null @@ -1,46 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="mal_inline"> - -<info> - <link type="guide" xref="spec"/> - - <version number="0.1" date="2007-02-21" status="incomplete"/> -</info> - -<title>Inline Elements</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline = mixed { - <link xref="mal_inline_app">mal_inline_app</link> *, - <link xref="mal_inline_cmd">mal_inline_cmd</link> *, - <link xref="mal_inline_code">mal_inline_code</link> *, - <link xref="mal_inline_em">mal_inline_em</link> *, - <link xref="mal_inline_file">mal_inline_file</link> *, - <link xref="mal_inline_gui">mal_inline_gui</link> *, - <link xref="mal_inline_guiseq">mal_inline_guiseq</link> *, - <link xref="mal_inline_input">mal_inline_input</link> *, - <link xref="mal_inline_key">mal_inline_key</link> *, - <link xref="mal_inline_keyseq">mal_inline_keyseq</link> *, - <link xref="mal_inline_link">mal_inline_link</link> *, - <link xref="mal_inline_media">mal_inline_media</link> *, - <link xref="mal_inline_output">mal_inline_output</link> *, - <link xref="mal_inline_quote">mal_inline_quote</link> *, - <link xref="mal_inline_span">mal_inline_span</link> *, - <link xref="mal_inline_sys">mal_inline_sys</link> *, - <link xref="mal_inline_var">mal_inline_var</link> *, - element * - (mal:* | local:*) { text } * -} -mal_inline__simple = mixed { - <link xref="mal_inline_var">mal_inline_var</link> *, - element * - (mal:* | local:*) { text } * -} -mal_inline__text = mixed { element * - (mal:* | local:*) { text } * } -</code></synopsis> - -<comment> - <cite date="2008-02-19"><name>Shaun McCance</name></cite> - <p>Add some intro text and general processing expectations</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_app.xml b/sandbox/mallard/spec/mal_inline_app.xml deleted file mode 100644 index 3e1a99f..0000000 --- a/sandbox/mallard/spec/mal_inline_app.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_app"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <version number="0.1" date="2007-02-08" status="review"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> -</info> - -<title>Application Names</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_app = element app - { <link xref="mal_attr_link">mal_attr_link</link>?, - <link xref="mal_inline#simple">mal_inline__simple</link>+ - } -</code></synopsis> - -<p>The <code>app</code> element marks the human-readable name of an application -or the title of a window within an application. It should not be used to mark -the name of the command used to run an application; use -<code xref="mal_inline_cmd">cmd</code> for this purpose instead.</p> - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - - <p>Application names are usually nouns, and are often common words or phrases - that are indicative of their functionality. Frequently, they are simply the - name of what the application is. In English and many other languages, the - use of an application name in a sentence may sound like the author has simply - mistakenly omitted an article, if the application name is not understood to - be a title.</p> - - <p>For example, the calculator application that comes with Gnome is called - <app>Calculator</app>. If an author were to write <quote>To start - <app>Calculator</app>…</quote>, then a reader may confuse this for <quote>To - start the calculator…</quote> with an error. This is even more pronounced - in languages such as German where nouns are always capitalized.</p> - - <p>For this reason, it is recommended that application names marked with the - <code>app</code> element are rendered in italics or using some other font - variation.</p> -</section> -<!-- END processing --> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_cmd.xml b/sandbox/mallard/spec/mal_inline_cmd.xml deleted file mode 100644 index 9077488..0000000 --- a/sandbox/mallard/spec/mal_inline_cmd.xml +++ /dev/null @@ -1,113 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_cmd"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_screen"/> - <link type="seealso" xref="mal_attr_link"/> - - <version number="0.1" date="2007-02-05" status="incomplete"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> -</info> - -<title>Commands</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_cmd = element cmd { - <link xref="mal_attr_link">mal_attr_link</link>?, - <link xref="mal_inline#simple">mal_inline__simple</link> -} -</code></synopsis> - -<p>The <code>cmd</code> element marks a command or a portion of a command run -in a shell. It is frequently used to mark the command to run an application. -It should not be used to mark the human-readable name of an application; use -<code xref="mal_inline_app">app</code> for this purpose instead.</p> - -<p>The <code>cmd</code> element may be used to mark the entire command, -including all arguments. Mallard does not contain elements to mark the -arguments specifically, as there is rarely a need to distinguish them. -The <code>cmd</code> element may also be used to mark parts of a command, -such as options and arguments, when these need to be referenced alone.</p> - -<p>The <code xref="mal_inline_var">var</code> element may be used inside a -<code>cmd</code> element to indicate text that should be replaced -by the user.</p> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - - <section> - <title>Basic Use</title> - <code><![CDATA[ -<p>To start <app>Totem Movie Player</app>, enter <cmd>totem</cmd> at -the command line.</p> -]]></code> - <p>To start <app>Totem Movie Player</app>, enter <cmd>totem</cmd> at the - command line.</p> - </section> - - <section> - <title>Using <code>var</code></title> - <code><![CDATA[ -<p>To view a file in <app>Totem Movie Player</app>, enter <cmd>totem -<var>file</var></cmd> at the command line, replacing <var>file</var> -with the name of the file.</p> -]]></code> - <p>To view a file in <app>Totem Movie Player</app>, enter <cmd>totem <var>file</var></cmd> - at the command line, replacing <var>file</var> with the name of the file.</p> - </section> - - <section> - <title>For Options</title> - <code><![CDATA[ -<p>The <cmd>-mtime</cmd> option for the <cmd>find</cmd> command allows -you to filter files based on their modification times.</p> -]]></code> - <p>The <cmd>-mtime</cmd> option for the <cmd>find</cmd> command allows you to - filter files based on their modification times.</p> - </section> - -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - <comment> - <cite date="2007-02-06"><name>Shaun McCance</name></cite> - <p>Add processing expectations.</p> - </comment> -</section> -<!-- END processing --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <title>Comparison to DocBook</title> - <p>The <code>cmd</code> element is functionally similar to DocBook's - <code href="http://www.docbook.org/tdg/en/html/command.html">command</code> - element. In DocBook, writers frequently use the - <code href="http://www.docbook.org/tdg/en/html/option.html">option</code> - element inside <code>command</code>. Mallard does not provide an element - for this purpose.</p> - <p>In DocBook, the <code>option</code> element is also used outside the - <code>command</code> element. In Mallard, simply use the <code>cmd</code> - element for options outside of an entire command.</p> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_code.xml b/sandbox/mallard/spec/mal_inline_code.xml deleted file mode 100644 index 0702413..0000000 --- a/sandbox/mallard/spec/mal_inline_code.xml +++ /dev/null @@ -1,68 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_code"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>Code Snippets</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_code = element code { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> -} -</code></synopsis> - -<comment> - <cite date="2006-12-08"><name>Shaun McCance</name></cite> - <p>Add intro material.</p> -</comment> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add examples.</p> - </comment> -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add processing expectations. For block, strip leading/trailing - newline. Do not strip leading indentation.</p> - </comment> -</section> -<!-- END processing --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <title>Comparison to DocBook</title> - <comment> - <cite date="2007-01-25"><name>Shaun McCance</name></cite> - <p>Add: code, class*, func*, programlisting</p> - </comment> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_em.xml b/sandbox/mallard/spec/mal_inline_em.xml deleted file mode 100644 index 44fac3c..0000000 --- a/sandbox/mallard/spec/mal_inline_em.xml +++ /dev/null @@ -1,75 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_em"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>Emphasis</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_em = element em { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> -} -</code></synopsis> - -<p>The <code>em</code> element indicates that its enclosed text should be -emphasized. You may use <code>em</code> to stress certain words in a sentence. -Do not use <code>em</code> to effect a particular typographic style, since it -may be rendered differently by different processing tools.</p> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - <comment> - <cite date="2008-02-19"><name>Shaun McCance</name></cite> - <p>Add examples.</p> - </comment> -</section> -<!-- END examples --> - - -<!-- BEGIN processing --> -<section id="processing"> - <title>Processing Expectations</title> - <p>Emphasized text is traditionally presented in an italic or oblique font. - Italic and oblique fonts stress a portion of text without making it stand - out. By contrast, bold text tends to draw the eye, which can be distracting - when reading long passages of text. In scripts without a distinction between - roman and italic type styles, it may still be possible to use an oblique font - or some other font variation. Bold text may be used if necessary.</p> - <p>Underlining should be avoided completely, since it hurts the legibility - of the text. This problem is especially pronounced in scripts which place - diacritical marks below the text. In these scripts, underlining can render - the text completely illegible.</p> -</section> -<!-- END processing --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <title>Comparison to DocBook</title> - <p>The <code>em</code> element is functionally similar to the - <code href="http://www.docbook.org/tdg/en/html/emphasis.html">emphasis</code> - element in DocBook. Athough DocBook does not normatively specify a means of - controlling the presentation, most DocBook processing tools allow writers to - set the <code>role</code> attribute to <code>bold</code> or <code>strong</code> - to specify bold text. We explicitly recommend against doing this in Mallard - documents and processing tools.</p> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_file.xml b/sandbox/mallard/spec/mal_inline_file.xml deleted file mode 100644 index fd5c398..0000000 --- a/sandbox/mallard/spec/mal_inline_file.xml +++ /dev/null @@ -1,34 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_file"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>Filenames</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_file = element file { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -<comment> - <cite date="2007-01-30"><name>Shaun McCance</name></cite> - <p>Add examples, processing expectations</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_gui.xml b/sandbox/mallard/spec/mal_inline_gui.xml deleted file mode 100644 index bdab285..0000000 --- a/sandbox/mallard/spec/mal_inline_gui.xml +++ /dev/null @@ -1,30 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_gui"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>GUI Labels</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_gui = element gui - { <link xref="mal_attr_link">mal_attr_link</link>?, - <link xref="mal_inline#simple">mal_inline__simple</link>+ - } -</code></synopsis> - - -</page> diff --git a/sandbox/mallard/spec/mal_inline_guiseq.xml b/sandbox/mallard/spec/mal_inline_guiseq.xml deleted file mode 100644 index 0d98bba..0000000 --- a/sandbox/mallard/spec/mal_inline_guiseq.xml +++ /dev/null @@ -1,30 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_guiseq"> - -<info> - <link type="guide" xref="mal_inline"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>GUI Labels</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_guiseq = element guiseq { - mixed { <link xref="mal_inline_gui">mal_inline_gui</link> + } -} -</code></synopsis> - -<p>The <code>guiseq</code> element marks a sequence of graphical interface -elements. This is typically used to to present a sequence of menu items.</p> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_input.xml b/sandbox/mallard/spec/mal_inline_input.xml deleted file mode 100644 index 44f986f..0000000 --- a/sandbox/mallard/spec/mal_inline_input.xml +++ /dev/null @@ -1,29 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_input"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - <link type="seealso" xref="mal_inline_output"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="stub"/> -</info> - -<title>User Input</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_input = element input - { <link xref="mal_attr_link">mal_attr_link</link>?, - <link xref="mal_inline#simple">mal_inline__simple</link>+ - } -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_key.xml b/sandbox/mallard/spec/mal_inline_key.xml deleted file mode 100644 index d874088..0000000 --- a/sandbox/mallard/spec/mal_inline_key.xml +++ /dev/null @@ -1,18 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_key"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_link#ubiquitous"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Key Strokes</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_key = element key { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_keyseq.xml b/sandbox/mallard/spec/mal_inline_keyseq.xml deleted file mode 100644 index 4f70373..0000000 --- a/sandbox/mallard/spec/mal_inline_keyseq.xml +++ /dev/null @@ -1,28 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_keyseq"> - -<info> - <link type="guide" xref="mal_inline"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="incomplete"/> -</info> - -<title>GUI Labels</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_keyseq = element keyseq { - mixed { <link xref="mal_inline_gui">mal_inline_key</link> + } -} -</code></synopsis> - - -</page> diff --git a/sandbox/mallard/spec/mal_inline_link.xml b/sandbox/mallard/spec/mal_inline_link.xml deleted file mode 100644 index 1a3e3af..0000000 --- a/sandbox/mallard/spec/mal_inline_link.xml +++ /dev/null @@ -1,38 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_link"> - -<info> - <link type="guide" xref="mal_inline"/> - - <version number="0.1" date="2007-02-05" status="incomplete"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> -</info> - -<title>Hyperlinks</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_link = element link - { ( attribute xref { text } - , <link xref="mal_inline">mal_inline__simple</link> ? - ) - | ( attribute dref { text } - , attribute href { text }? - , <link xref="mal_inline">mal_inline__text</link> - ) - | ( attribute href { text } - , <link xref="mal_inline">mal_inline__text</link> - ) - } -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_media.xml b/sandbox/mallard/spec/mal_inline_media.xml deleted file mode 100644 index ffd3b9d..0000000 --- a/sandbox/mallard/spec/mal_inline_media.xml +++ /dev/null @@ -1,18 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_media"> -<info> - <link type="guide" xref="mal_inline"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Multimedia Objects</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_media = element media { - attribute type { text } ?, - attribute mime { text } ?, - attribute href { text } -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_output.xml b/sandbox/mallard/spec/mal_inline_output.xml deleted file mode 100644 index 957efa7..0000000 --- a/sandbox/mallard/spec/mal_inline_output.xml +++ /dev/null @@ -1,29 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_output"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_attr_link"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2008-02-19" status="stub"/> -</info> - -<title>Computer Output</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_output = element output { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_quote.xml b/sandbox/mallard/spec/mal_inline_quote.xml deleted file mode 100644 index 6b2d4af..0000000 --- a/sandbox/mallard/spec/mal_inline_quote.xml +++ /dev/null @@ -1,38 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_quote"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_block_quote"/> - <link type="seealso" xref="mal_attr_link"/> - - <version number="0.1" date="2007-02-08" status="stub"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" /> -</info> - -<title>Quotes</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_quote = element quote { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline">mal_inline</link> + -} -</code></synopsis> - -<comment> - <cite date="2007-02-21"><name>Shaun McCance</name></cite> - <p>render quotes around inline</p> - <p>style="epipgraph"</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_span.xml b/sandbox/mallard/spec/mal_inline_span.xml deleted file mode 100644 index e24dcb4..0000000 --- a/sandbox/mallard/spec/mal_inline_span.xml +++ /dev/null @@ -1,19 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_span"> - -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_link#ubiquitous"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Variable Text</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_span = element em { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_sys.xml b/sandbox/mallard/spec/mal_inline_sys.xml deleted file mode 100644 index dd6b1a5..0000000 --- a/sandbox/mallard/spec/mal_inline_sys.xml +++ /dev/null @@ -1,18 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_sys"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_link#ubiquitous"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>System Items</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_sys = element sys { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_inline_var.xml b/sandbox/mallard/spec/mal_inline_var.xml deleted file mode 100644 index 895c38b..0000000 --- a/sandbox/mallard/spec/mal_inline_var.xml +++ /dev/null @@ -1,18 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_inline_var"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_link#ubiquitous"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Variable Text</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_inline_var = element var { - <link xref="mal_attr_link">mal_attr_link</link> ?, - <link xref="mal_inline#simple">mal_inline__simple</link> + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_list.xml b/sandbox/mallard/spec/mal_list.xml deleted file mode 100644 index 2191254..0000000 --- a/sandbox/mallard/spec/mal_list.xml +++ /dev/null @@ -1,29 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="mal_list"> -<info> - <link type="guide" xref="mal_block#containers"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Lists</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_list = ( - <link xref="mal_list_bullet">mal_list_bullet</link> | - <link xref="mal_list_numbered">mal_list_numbered</link> | - <link xref="mal_list_definition">mal_list_definition</link> | - <link xref="mal_list_tree">mal_list_tree</link> ) -</code></synopsis> - -<comment> - <cite date="2007-01-30"><name>Shaun McCance</name></cite> - <p>Add explanation, examples, processing expectations</p> -</comment> - -<comment> - <cite date="2007-02-09"><name>Shaun McCance</name></cite> - <p>Unmarked lists and segmented lists</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/mal_list_bullet.xml b/sandbox/mallard/spec/mal_list_bullet.xml deleted file mode 100644 index 49ffb4c..0000000 --- a/sandbox/mallard/spec/mal_list_bullet.xml +++ /dev/null @@ -1,22 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_list_bullet"> -<info> - <link type="guide" xref="mal_list"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Bullet Lists</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_list_bullet = element list { - attribute type { "bullet" } ?, - attribute style { text } ?, - <link xref="mal_title">mal_title</link> ?, - element item { - <link xref="mal_block#simple">mal_block__simple</link> +, - <link xref="mal_list">mal_list</link> ? - } + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_list_definition.xml b/sandbox/mallard/spec/mal_list_definition.xml deleted file mode 100644 index 8bc7d92..0000000 --- a/sandbox/mallard/spec/mal_list_definition.xml +++ /dev/null @@ -1,22 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_list_definition"> -<info> - <link type="guide" xref="mal_list"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Definition Lists</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_list_definition = element list { - attribute type { "definition" }, - attribute style { text } ?, - element item { - <link xref="mal_title">mal_title</link> +, - <link xref="mal_block#simple">mal_block__simple</link> +, - <link xref="mal_list">mal_list</link> ? - } + -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_list_numbered.xml b/sandbox/mallard/spec/mal_list_numbered.xml deleted file mode 100644 index d9564f0..0000000 --- a/sandbox/mallard/spec/mal_list_numbered.xml +++ /dev/null @@ -1,22 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_list_numbered"> -<info> - <link type="guide" xref="mal_list"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Numbered Lists</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_list_numbered = element list { - attribute type { "numbered" }, - attribute style { text } ?, - <link xref="mal_title">mal_title</link> ?, - element item { - <link xref="mal_block#simple">mal_block__simple</link> +, - <link xref="mal_list">mal_list</link> ? - } +, -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_list_tree.xml b/sandbox/mallard/spec/mal_list_tree.xml deleted file mode 100644 index 39d6116..0000000 --- a/sandbox/mallard/spec/mal_list_tree.xml +++ /dev/null @@ -1,22 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_list_tree"> -<info> - <link type="guide" xref="mal_list"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Tree Lists</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_list_tree = element list { - attribute type { "tree" }, - attribute style { text } ?, - mal_item_tree + -} -mal_item_tree = element item { - <link xref="mal_inline">mal_inline</link> +, - mal_item_tree * -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_output.xml b/sandbox/mallard/spec/mal_output.xml deleted file mode 100644 index 2e82d71..0000000 --- a/sandbox/mallard/spec/mal_output.xml +++ /dev/null @@ -1,11 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_output"> -<info> - <link type="guide" xref="mal_inline"/> - <link type="seealso" xref="mal_link#ubiquitous"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Computer Output</title> - -</page> diff --git a/sandbox/mallard/spec/mal_page.xml b/sandbox/mallard/spec/mal_page.xml deleted file mode 100644 index 081984f..0000000 --- a/sandbox/mallard/spec/mal_page.xml +++ /dev/null @@ -1,22 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_page"> - -<info> - <link type="guide" xref="spec_pages"/> - <version number="0.1" date="2008-02-21" status="stub"/> -</info> - -<title>Pages</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_page = element page { - attribute id { text }, - attribute type { "topic" | "guide" } ?, - <link xref="mal_info">mal_info</link>, - <link xref="mal_title">mal_title</link>, - <link xref="mal_block">mal_block</link> *, - <link xref="mal_section">mal_section</link> * -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_section.xml b/sandbox/mallard/spec/mal_section.xml deleted file mode 100644 index 2868b85..0000000 --- a/sandbox/mallard/spec/mal_section.xml +++ /dev/null @@ -1,19 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_section"> -<info> - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Sections</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_section = element section { - attribute id { text } ?, - <link xref="mal_info">mal_info</link> ?, - <link xref="mal_title">mal_title</link>, - <link xref="mal_block">mal_block</link> *, - <link xref="mal_section">mal_section</link> * -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_subtitle.xml b/sandbox/mallard/spec/mal_subtitle.xml deleted file mode 100644 index afeea37..0000000 --- a/sandbox/mallard/spec/mal_subtitle.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_subtitle"> - -<info> - <link type="guide" xref="mal_block#simple"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Subtitles</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_subtitle = element subtitle { - <link xref="mal_inline">mal_inline</link> -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mal_table.xml b/sandbox/mallard/spec/mal_table.xml deleted file mode 100644 index bf2d422..0000000 --- a/sandbox/mallard/spec/mal_table.xml +++ /dev/null @@ -1,797 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_table"> -<info> - <link type="guide" xref="mal_block#containers"/> -</info> - -<title>Tables</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_table = element table { - attribute frame { - "all" | "none" | - list { ("top" | "bottom" | "left" | "right") * } - } ?, - attribute rules { - "all" | "groups" | "none" | - list { ("rows" | "rowgroups" | "cols" | "colgroups") * } - } ?, - attribute shade { - "all" | "groups" | "none" | - list { ("rows" | "rowgroups" | "cols" | "colgroups") * } - } ?, - - <link xref="mal_title">mal_title</link> ?, - - ( <link xref="mal_table_col">mal_table_col</link> + - | <link xref="mal_table_colgroup">mal_table_colgroup</link> + - ) ?, - - ( <link xref="mal_table_tr">mal_table_tr</link> + - | ( <link xref="mal_table_thead">mal_table_thead</link> ?, - <link xref="mal_table_tbody">mal_table_tbody</link> +, - <link xref="mal_table_tfoot">mal_table_tfoot</link> ? - ) - ), - - <link xref="mal_caption">mal_caption</link> ? -} -mal_table_col = element col {} -mal_table_colgroup = element colgroup { mal_table_col * } -mal_table_thead = element thead { mal_table_tr + } -mal_table_tbody = element tbody { mal_table_tr + } -mal_table_tfoot = element tfoot { mal_table_tr + } -mal_table_tr = element tr { mal_table_td * } -mal_table_td = element td { <link xref="mal_block#simple">mal_block__simple</link> + } -</code></synopsis> - - -<!-- BEGIN content --> -<section id="content"> - <info> - <version status="stub"/> - </info> - <title>Content</title> -</section> -<!-- END content --> - - -<!-- BEGIN attributes --> -<section id="attributes"> - <info> - <version status="stub"/> - </info> - <title>Attributes</title> -</section> -<!-- END attributes --> - - -<!-- BEGIN examples --> -<section id="examples"> - <title>Examples</title> - -<section id="examples-rules"> - <title>The <code>rules</code> Attribute</title> - - <section> - <title>Rows</title> - <code><![CDATA[ -<table frame="all" rules="rows"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" rules="rows"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> - - <section> - <title>Columns</title> - <code><![CDATA[ -<table frame="all" rules="cols"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" rules="cols"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> - - <section> - <title>Row Groups</title> - <code><![CDATA[ -<table frame="all" rules="rowgroups cols"> - <tbody> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> -</table>]]></code> - <table frame="all" rules="rowgroups cols"> - <tbody> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - </table> - </section> - - <section> - <title>Column Groups</title> - <code><![CDATA[ -<table frame="all" rules="rows colgroups"> - <colgroup><col/></colgroup> - <colgroup><col/></colgroup> - <colgroup><col/><col/></colgroup> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" rules="rows colgroups"> - <colgroup><col/></colgroup> - <colgroup><col/></colgroup> - <colgroup><col/><col/></colgroup> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> -</section> - -<section id="examples-shade"> - <title>The <code>shade</code> Attribute</title> - - <section> - <title>Rows</title> - <code><![CDATA[ -<table frame="all" shade="rows"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" shade="rows"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> - - <section> - <title>Columns</title> - <code><![CDATA[ -<table frame="all" shade="cols"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" shade="cols"> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> - - <section> - <title>Row Groups</title> - <code><![CDATA[ -<table frame="all" shade="rowgroups cols"> - <tbody> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> -</table>]]></code> - <table frame="all" shade="rowgroups cols"> - <tbody> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - <tbody> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </tbody> - </table> - </section> - - <section> - <title>Column Groups</title> - <code><![CDATA[ -<table frame="all" shade="rows colgroups"> - <colgroup><col/></colgroup> - <colgroup><col/></colgroup> - <colgroup><col/><col/></colgroup> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> -</table>]]></code> - <table frame="all" shade="rows colgroups"> - <colgroup><col/></colgroup> - <colgroup><col/></colgroup> - <colgroup><col/><col/></colgroup> - <tr> - <td><p>GNOME 2.6</p></td> - <td><p>2004-03-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.5/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.6/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.8</p></td> - <td><p>2004-09-15</p></td> - <td><p><link href="http://www.gnome.org/start/2.7/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.8/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.10</p></td> - <td><p>2005-03-09</p></td> - <td><p><link href="http://www.gnome.org/start/2.9/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.10/notes/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.12</p></td> - <td><p>2005-09-07</p></td> - <td><p><link href="http://www.gnome.org/start/2.11/">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.12/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.14</p></td> - <td><p>2006-03-15</p></td> - <td><p><link href="http://live.gnome.org/TwoPointThirteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.14/notes/C/">Release Notes</link></p></td> - </tr> - <tr> - <td><p>GNOME 2.16</p></td> - <td><p>2006-09-06</p></td> - <td><p><link href="http://live.gnome.org/TwoPointFifteen">Development</link></p></td> - <td><p><link href="http://www.gnome.org/start/2.16/notes/C/">Release Notes</link></p></td> - </tr> - </table> - </section> -</section> -</section> -<!-- END examples --> - - -<!-- BEGIN design --> -<section id="design"> - <info> - <version status="stub"/> - </info> - <title>Design Notes</title> -</section> -<!-- END design --> - - -<!-- BEGIN html --> -<section id="html"> - <info> - <version status="stub"/> - </info> - <title>Comparison to HTML</title> -</section> -<!-- END html --> - - -<!-- BEGIN docbook --> -<section id="docbook"> - <info> - <version status="stub"/> - </info> - <title>Comparison to DocBook</title> -</section> -<!-- END docbook --> - -</page> diff --git a/sandbox/mallard/spec/mal_title.xml b/sandbox/mallard/spec/mal_title.xml deleted file mode 100644 index 603eb9c..0000000 --- a/sandbox/mallard/spec/mal_title.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="mal_title"> - -<info> - <link type="guide" xref="mal_block#simple"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Titles</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -mal_title = element title { - <link xref="mal_inline">mal_inline</link> -} -</code></synopsis> - -</page> diff --git a/sandbox/mallard/spec/mallard.xml b/sandbox/mallard/spec/mallard.xml deleted file mode 100644 index 85799c5..0000000 --- a/sandbox/mallard/spec/mallard.xml +++ /dev/null @@ -1,29 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="mallard"> -<info> - <link type="topic" xref="10minutes"/> - <link type="topic" xref="explore"/> - <link type="topic" xref="principles"/> - <link type="topic" xref="spec"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2007</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Mallard</title> - -<comment> - <cite date="2007-02-20"><name>Shaun McCance</name></cite> - <p>Add some intro text</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/principle-guide.xml b/sandbox/mallard/spec/principle-guide.xml deleted file mode 100644 index 99a655e..0000000 --- a/sandbox/mallard/spec/principle-guide.xml +++ /dev/null @@ -1,14 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="principle-guide"> - -<info> - <desc>Ensure the reader doesn't get lost in a link swarm</desc> - - <link type="guide" xref="principles#reader"/> - - <version number="0.1" date="2007-02-26" status="stub"/> -</info> - -<title>Guide the Reader</title> - -</page> diff --git a/sandbox/mallard/spec/principle-justenough.xml b/sandbox/mallard/spec/principle-justenough.xml deleted file mode 100644 index 489ef3d..0000000 --- a/sandbox/mallard/spec/principle-justenough.xml +++ /dev/null @@ -1,12 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="principle-justenough"> -<info> - <version number="0.1" date="2007-02-26" status="stub"/> - <link type="guide" xref="principles#writer"/> - <link type="guide" xref="principles#hacker"/> - <desc>Provide just enough markup to mark up what's important</desc> -</info> - -<title>Just Enough Markup</title> - -</page> diff --git a/sandbox/mallard/spec/principle-redundancy.xml b/sandbox/mallard/spec/principle-redundancy.xml deleted file mode 100644 index 536cb12..0000000 --- a/sandbox/mallard/spec/principle-redundancy.xml +++ /dev/null @@ -1,11 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - id="principle-redundancy"> -<info> - <version number="0.1" date="2007-02-26" status="stub"/> - <link type="guide" xref="principles#writer"/> - <desc>Avoid forcing writers to write the same thing twice</desc> -</info> - -<title>Reduce Redundancy</title> - -</page> diff --git a/sandbox/mallard/spec/principles.xml b/sandbox/mallard/spec/principles.xml deleted file mode 100644 index 44c3eb6..0000000 --- a/sandbox/mallard/spec/principles.xml +++ /dev/null @@ -1,59 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="principles"> - -<info> - <desc>The guiding principles behind the design of Mallard</desc> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Design Principles</title> - -<comment> - <cite date="2007-02-27"><name>Shaun McCance</name></cite> - <p>Add intro content</p> - <p>Add principles: pluggability, implementation speed, l10n</p> -</comment> - -<section id="reader"> - <info> - <title type="link">Principles for the Reader</title> - </info> - - <title>For the Reader</title> - - <p>Readers are the ultimate arbiters of the quality of a documentation - system. The best efforts of the writers and hackers are wasted if the - documention doesn't help the reader to find the information she needs - quickly. The needs of the reader trump all other requirements.</p> -</section> - -<section id="writer"> - <info> - <title type="link">Principles for the Writer</title> - </info> - <title>For the Writer</title> - <comment> - <cite date="2007-02-27"><name>Shaun McCance</name></cite> - <p>Add</p> - </comment> -</section> - -<section id="hacker"> - <info> - <title type="link">Principles for the Hacker</title> - </info> - <title>For the Hacker</title> -</section> - -</page> diff --git a/sandbox/mallard/spec/spec.xml b/sandbox/mallard/spec/spec.xml deleted file mode 100644 index 087f55f..0000000 --- a/sandbox/mallard/spec/spec.xml +++ /dev/null @@ -1,17 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="spec"> -<info> - <link type="topic" xref="mal_page"/> - <link type="topic" xref="mal_section"/> - <version number="0.1" date="2007-02-21" status="stub"/> -</info> - -<title>Specification</title> - -<comment> - <cite date="2007-02-20"><name>Shaun McCance</name></cite> - <p>Add some intro text</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/spec_info.xml b/sandbox/mallard/spec/spec_info.xml deleted file mode 100644 index 3904aad..0000000 --- a/sandbox/mallard/spec/spec_info.xml +++ /dev/null @@ -1,27 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="spec_info"> - -<info> - <link type="guide" xref="spec" weight="-1"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Information Elements</title> - -<comment> - <cite date="2008-02-22"><name>Shaun McCance</name></cite> - <p>Add</p> -</comment> - -</page> diff --git a/sandbox/mallard/spec/spec_pages.xml b/sandbox/mallard/spec/spec_pages.xml deleted file mode 100644 index 97eb15f..0000000 --- a/sandbox/mallard/spec/spec_pages.xml +++ /dev/null @@ -1,28 +0,0 @@ -<page xmlns="http://www.gnome.org/~shaunm/mallard" - type="guide" - id="spec_pages"> - -<info> - <link type="guide" xref="spec" weight="1"/> - - <credit type="author"> - <name>Shaun McCance</name> - <email>shaunm@gnome.org</email> - </credit> - <copyright> - <year>2008</year> - <name>Shaun McCance</name> - </copyright> - - <version number="0.1" date="2007-02-22" status="stub"/> -</info> - -<title>Page Elements</title> - -<synopsis><code mime="application/relax-ng-compact-syntax"> -namespace local = "" -default namespace mal = "http://www.gnome.org/~shaunm/mallard" -start = <link xref="mal_page">mal_page</link> -</code></synopsis> - -</page> diff --git a/sandbox/mallard/xslt/mal2html-block.xsl b/sandbox/mallard/xslt/mal2html-block.xsl deleted file mode 100644 index b2c4b72..0000000 --- a/sandbox/mallard/xslt/mal2html-block.xsl +++ /dev/null @@ -1,289 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - Block Elements - -REMARK: Describe this module ---> - - -<!--**========================================================================== -mal2html.block.css -Outputs CSS that controls the appearance of block elements - -REMARK: Describe this template ---> -<xsl:template name="mal2html.block.css"> -<xsl:text> -div.title { - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text-light'"/> - </xsl:call-template> - <xsl:text>; - font-weight: bold; -} -pre.code { - <!-- FIXME: theme --> - background: url(mallard-icon-code.png) no-repeat top right; - border: solid 2px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-light'"/> - </xsl:call-template> - <xsl:text>; - padding: 0.5em 1em 0.5em 1em; -} -div.comment { - padding: 0.5em; - border: solid 2px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'red-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'red-background'"/> - </xsl:call-template> - <xsl:text>; -} -div.comment div.comment { - margin: 1em 0 0 1em; -} -div.comment div.cite { margin: 0; font-style: italic; } - -div.figure { - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text-light'"/> - </xsl:call-template> - <xsl:text>; - border: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-background'"/> - </xsl:call-template> - <xsl:text>; - margin-left: 1.72em; - padding: 4px; -} -div.figure-contents { - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text'"/> - </xsl:call-template> - <xsl:text>; - border: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'background'"/> - </xsl:call-template> - <xsl:text>; - padding: 0.5em 1em 0.5em 1em; - margin: 0; - text-align: center; -} -div.figure div.title { margin: 0 0 4px 0; } -div.figure div.caption { margin: 4px 0 0 0; } - -div.synopsis { - border-top: solid 2px; - border-bottom: solid 2px; - border-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'blue-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-background'"/> - </xsl:call-template> - <xsl:text>; - padding: 0.5em 1em 0.5em 1em; -} -div.synopsis pre.code { - background: none; - border: none; - padding: 0; -} -div.title { - font-size: 1.2em; - margin-top: 0; - font-weight: bold; -} -</xsl:text> -</xsl:template> - - -<!-- == Matched Templates == --> - -<!-- = caption = --> -<xsl:template mode="mal2html.block.mode" match="mal:caption"> - <div class="caption"> - <xsl:apply-templates mode="mal2html.block.mode"/> - </div> -</xsl:template> - -<!-- = code = --> -<xsl:template mode="mal2html.block.mode" match="mal:code"> - <xsl:variable name="first" select="node()[1]/self::text()"/> - <xsl:variable name="last" select="node()[last()]/self::text()"/> - <pre class="code"> - <xsl:if test="not(preceding-sibling::*)"> - <xsl:attribute name="class"> - <xsl:text>first-child</xsl:text> - </xsl:attribute> - </xsl:if> - <xsl:if test="$first"> - <xsl:call-template name="util.strip_newlines"> - <xsl:with-param name="string" select="$first"/> - <xsl:with-param name="leading" select="true()"/> - <xsl:with-param name="trailing" select="$first = $last"/> - </xsl:call-template> - </xsl:if> - <xsl:apply-templates mode="mal2html.inline.mode" - select="node()[not(. = $first or . = $last)]"/> - <xsl:if test="$last and ($first != $last)"> - <xsl:call-template name="util.strip_newlines"> - <xsl:with-param name="string" select="$last"/> - <xsl:with-param name="leading" select="false()"/> - <xsl:with-param name="trailing" select="true()"/> - </xsl:call-template> - </xsl:if> - </pre> -</xsl:template> - -<!-- = comment = --> -<xsl:template mode="mal2html.block.mode" match="mal:comment"> - <div class="comment"> - <xsl:if test="not(preceding-sibling::*)"> - <xsl:attribute name="class"> - <xsl:text>first-child</xsl:text> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="mal2html.block.mode"/> - </div> -</xsl:template> - -<!-- = comment/title = --> -<xsl:template mode="mal2html.block.mode" match="mal:comment/mal:title"> - <div class="title"> - <xsl:apply-templates mode="mal2html.inline.mode"/> - </div> -</xsl:template> - -<!-- = comment/cite = --> -<xsl:template mode="mal2html.block.mode" match="mal:comment/mal:cite"> - <div class="cite"> - <!-- FIXME: i18n --> - <xsl:choose> - <xsl:when test="@name and @date"> - <xsl:text>from </xsl:text> - <xsl:apply-templates mode="mal2html.inline.mode" select="@name"/> - <xsl:text> on </xsl:text> - <xsl:apply-templates mode="mal2html.inline.mode" select="@date"/> - </xsl:when> - <xsl:otherwise> - <xsl:text>from </xsl:text> - <xsl:apply-templates mode="mal2html.inline.mode" select="@name"/> - </xsl:otherwise> - </xsl:choose> - </div> -</xsl:template> - -<!-- = figure = --> -<xsl:template mode="mal2html.block.mode" match="mal:figure"> - <div class="figure"> - <xsl:if test="not(preceding-sibling::*)"> - <xsl:attribute name="class"> - <xsl:text>first-child</xsl:text> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/> - <div class="figure-contents"> - <xsl:apply-templates mode="mal2html.block.mode" - select="*[not(self::mal:title or self::mal:caption)]"/> - </div> - <xsl:apply-templates mode="mal2html.block.mode" select="mal:caption"/> - </div> -</xsl:template> - -<!-- = figure/title = --> -<xsl:template mode="mal2html.block.mode" match="mal:figure/mal:title"> - <div class="title"> - <xsl:apply-templates mode="mal2html.inline.mode"/> - </div> -</xsl:template> - -<!-- = info = --> -<xsl:template mode="mal2html.block.mode" match="mal:info"/> - -<!-- = p = --> -<xsl:template mode="mal2html.block.mode" match="mal:p"> - <p class="p"> - <xsl:if test="not(preceding-sibling::*)"> - <xsl:attribute name="class"> - <xsl:text>first-child</xsl:text> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="mal2html.inline.mode"/> - </p> -</xsl:template> - -<!-- = synopsis = --> -<xsl:template mode="mal2html.block.mode" match="mal:synopsis"> - <div class="synopsis"> - <xsl:if test="not(preceding-sibling::*)"> - <xsl:attribute name="class"> - <xsl:text>first-child</xsl:text> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="mal2html.block.mode"/> - </div> -</xsl:template> - -<!-- = synopsis/title = --> -<xsl:template mode="mal2html.block.mode" match="mal:synopsis/mal:title"> - <div class="title"> - <xsl:apply-templates mode="mal2html.inline.mode"/> - </div> -</xsl:template> - -<!-- FIXME --> -<xsl:template mode="mal2html.block.mode" match="*"> - <xsl:message> - <xsl:text>Unmatched block element: </xsl:text> - <xsl:value-of select="local-name(.)"/> - </xsl:message> - <xsl:apply-templates mode="mal2html.inline.mode"/> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-css.xsl b/sandbox/mallard/xslt/mal2html-css.xsl deleted file mode 100644 index fcdcc2f..0000000 --- a/sandbox/mallard/xslt/mal2html-css.xsl +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:exsl="http://exslt.org/common" - xmlns="http://www.w3.org/1999/xhtml" - extension-element-prefixes="exsl" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - CSS - -REMARK: Describe this module ---> - - -<!--@@========================================================================== -mal2html.css.file -The file to output CSS to - -This parameter allows you to output the CSS to separate file which is referenced -by each HTML file. If this parameter is blank, then the CSS is embedded inside -a #{style} tag in the HTML instead. ---> -<xsl:param name="mal2html.css.file" select="''"/> - - -<!--**========================================================================== -mal2html.css -Outputs the CSS that controls the appearance of the entire document -$css_file: Whether to create a CSS file when @{mal2html.css.file} is set. - -This template outputs a #{style} or #{link} tag and calls *{mal2html.css.content} -to output the actual CSS directives. An external CSS file will only be created -when ${css_file} is true. ---> -<xsl:template name="mal2html.css"> - <xsl:param name="css_file" select="false()"/> - <xsl:choose> - <xsl:when test="$mal2html.css.file != ''"> - <xsl:if test="$css_file"> - <exsl:document href="{$mal2html.css.file}" method="text"> - <xsl:call-template name="mal2html.css.content"/> - </exsl:document> - </xsl:if> - <link rel="stylesheet" type="text/css" href="{$mal2html.css.file}"/> - </xsl:when> - <xsl:otherwise> - <style type="text/css"> - <xsl:call-template name="mal2html.css.content"/> - </style> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<!--**========================================================================== -mal2html.css.content -Outputs the actual CSS directives - -This template is called by *{mal2html.css} to output CSS content. It also calls -templates from other modules to output CSS specific to the content addressed in -those modules. - -This template calls *{mal2html.css.custom} at the end. That template may be used -by extension stylesheets to extend or override the CSS. ---> -<xsl:template name="mal2html.css.content"> - <xsl:call-template name="mal2html.block.css"/> - <xsl:call-template name="mal2html.inline.css"/> - <xsl:call-template name="mal2html.list.css"/> - <xsl:call-template name="mal2html.page.css"/> - <xsl:call-template name="mal2html.table.css"/> -<xsl:text> -div, pre, p { margin: 1em 0 0 0; padding: 0; } -.first-child { margin-top: 0; } -a { - text-decoration: none; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'link'"/> - </xsl:call-template> - <xsl:text>; -} -a:visited { - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'link-visited'"/> - </xsl:call-template> - <xsl:text>; -} -a:hover { text-decoration: underline; } -</xsl:text> -<xsl:call-template name="mal2html.css.custom"/> -</xsl:template> -<!-- -2.4 -2 -1.72 -1.44 -1.2 -1 -0.83 -0.69 -0.5 ---> - - -<!--**========================================================================== -mal2html.css.custom -Allows extension stylesheets to extend or override CSS -:Stub: true - -This stub template has no content. Extension stylesheets can override this -template to output extra CSS. ---> -<xsl:template name="mal2html.css.custom"/> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-inline.xsl b/sandbox/mallard/xslt/mal2html-inline.xsl deleted file mode 100644 index 5edcd00..0000000 --- a/sandbox/mallard/xslt/mal2html-inline.xsl +++ /dev/null @@ -1,253 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - Inline Elements - -REMARK: Describe this module ---> - - -<!--**========================================================================== -mal2html.span -Renders an inline element as a #{span} -$node: The element to render -$content: An optional parameter specifying the content of the #{span} - -REMARK: Document this template ---> -<xsl:template name="mal2html.span"> - <xsl:param name="node" select="."/> - <xsl:param name="content" select="false()"/> - <span class="{local-name($node)}"> - <xsl:choose> - <xsl:when test="$node/@xref"> - <a class="xref"> - <xsl:attribute name="href"> - <xsl:call-template name="mal.link.target"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="xref" select="$node/@xref"/> - </xsl:call-template> - </xsl:attribute> - <xsl:attribute name="title"> - <xsl:call-template name="mal.link.tooltip"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="xref" select="$node/@xref"/> - </xsl:call-template> - </xsl:attribute> - <xsl:choose> - <xsl:when test="$content"> - <xsl:copy-of select="$content"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/> - </xsl:otherwise> - </xsl:choose> - </a> - </xsl:when> - <xsl:when test="$node/@href"> - <a class="href" href="{$node/@href}"> - <xsl:attribute name="title"> - <xsl:call-template name="mal.link.tooltip"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="href" select="$node/@href"/> - </xsl:call-template> - </xsl:attribute> - <xsl:choose> - <xsl:when test="$content"> - <xsl:copy-of select="$content"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/> - </xsl:otherwise> - </xsl:choose> - </a> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="$content"> - <xsl:copy-of select="$content"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - </span> -</xsl:template> - - -<!--**========================================================================== -mal2html.inline.css -Outputs CSS that controls the appearance of inline elements - -REMARK: Describe this template ---> -<xsl:template name="mal2html.inline.css"> -<xsl:text> -span.app { font-style: italic; } -span.cmd { - font-family: monospace; - background-color: #f0f0f0; - padding-left: 0.2em; - padding-right: 0.4em; -} -span.code { font-family: monospace; } -span.em { font-style: italic; } -span.email { color: red; } -span.file { font-family: monospace; } -span.gui { color: red; } -span.input { color: red; } -span.key { color: red; } -span.output { color: red; } -span.sys { font-family: monospace; } -span.var { font-style: italic; } -</xsl:text> -</xsl:template> - - -<!-- == Matched Templates == --> - -<!-- = app = --> -<xsl:template mode="mal2html.inline.mode" match="mal:app"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = cmd = --> -<xsl:template mode="mal2html.inline.mode" match="mal:cmd"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = code = --> -<xsl:template mode="mal2html.inline.mode" match="mal:code"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = date = --> -<xsl:template mode="mal2html.inline.mode" match="mal:date"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = em = --> -<xsl:template mode="mal2html.inline.mode" match="mal:em"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = email = --> -<xsl:template mode="mal2html.inline.mode" match="mal:email"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = file = --> -<xsl:template mode="mal2html.inline.mode" match="mal:file"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = gui = --> -<xsl:template mode="mal2html.inline.mode" match="mal:gui"> - <!-- FIXME: menu --> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = input = --> -<xsl:template mode="mal2html.inline.mode" match="mal:input"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = key = --> -<xsl:template mode="mal2html.inline.mode" match="mal:key"> - <!-- FIXME: keycombo --> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = link = --> -<xsl:template mode="mal2html.inline.mode" match="mal:link"> - <xsl:call-template name="mal2html.span"> - <xsl:with-param name="content"> - <xsl:choose> - <xsl:when test="normalize-space(.) != ''"> - <xsl:apply-templates/> - </xsl:when> - <xsl:when test="@xref"> - <xsl:call-template name="mal.link.content"> - <xsl:with-param name="node" select="."/> - <xsl:with-param name="xref" select="@xref"/> - </xsl:call-template> - </xsl:when> - <xsl:when test="@href"> - <xsl:value-of select="@href"/> - </xsl:when> - </xsl:choose> - </xsl:with-param> - </xsl:call-template> -</xsl:template> - -<!-- = media = --> -<xsl:template mode="mal2html.inline.mode" match="mal:media"> - <!-- FIXME --> -</xsl:template> - -<!-- = name = --> -<xsl:template mode="mal2html.inline.mode" match="mal:name"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = output = --> -<xsl:template mode="mal2html.inline.mode" match="mal:output"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = quote = --> -<xsl:template mode="mal2html.inline.mode" match="mal:quote"> - <!-- FIXME: do smart quoting --> - <xsl:text>"</xsl:text> - <xsl:call-template name="mal2html.span"/> - <xsl:text>"</xsl:text> -</xsl:template> - -<!-- = sys = --> -<xsl:template mode="mal2html.inline.mode" match="mal:sys"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = var = --> -<xsl:template mode="mal2html.inline.mode" match="mal:var"> - <xsl:call-template name="mal2html.span"/> -</xsl:template> - -<!-- = text() = --> -<xsl:template mode="mal2html.inline.mode" match="text()"> - <xsl:value-of select="."/> -</xsl:template> - -<!-- = FIXME = --> -<xsl:template mode="mal2html.inline.mode" match="*"> - <xsl:message> - <xsl:text>Unmatched inline element: </xsl:text> - <xsl:value-of select="local-name(.)"/> - </xsl:message> - <xsl:apply-templates mode="mal2html.inline.mode"/> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-list.xsl b/sandbox/mallard/xslt/mal2html-list.xsl deleted file mode 100644 index 23207da..0000000 --- a/sandbox/mallard/xslt/mal2html-list.xsl +++ /dev/null @@ -1,90 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - List Elements - -REMARK: Describe this module ---> - - -<!--**========================================================================== -mal2html.list.css -Outputs CSS that controls the appearance of lists - -REMARK: Describe this template ---> -<xsl:template name="mal2html.list.css"> -<xsl:text> -ul.list-tree { - margin: 0; padding: 0; - list-style-type: none; -} -ul.list-tree li { - margin: 0; padding: 0; -} -ul.list-tree li p { - margin: 0; padding: 0; -} -ul.list-tree ul.list-tree { - margin-left: 1.44em; -} -ul.list-tree ul.list-tree li { - margin-top: 0.69em; -} -</xsl:text> -</xsl:template> - - -<!-- == Bullet Lists == --> - -<!-- == Numbered Lists == --> - -<!-- == Definition Lists == --> - -<!-- == Tree Lists == --> - -<xsl:template mode="mal2html.block.mode" match="mal:list[@type='tree']"> - <div class="list list-tree"> - <ul class="list list-tree"> - <xsl:apply-templates mode="mal2html.list.tree.mode"/> - </ul> - </div> -</xsl:template> - -<xsl:template mode="mal2html.list.tree.mode" match="mal:item"> - <li> - <p> - <xsl:apply-templates mode="mal2html.inline.mode" - select="*[not(self::mal:item)]"/> - </p> - </li> - <xsl:if test="mal:item"> - <ul class="list list-tree"> - <xsl:apply-templates mode="mal2html.list.tree.mode" - select="mal:item"/> - </ul> - </xsl:if> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-media.xsl b/sandbox/mallard/xslt/mal2html-media.xsl deleted file mode 100644 index 0d56215..0000000 --- a/sandbox/mallard/xslt/mal2html-media.xsl +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - Media Elements - -REMARK: Describe this module ---> - - -<!-- == Matched Templates == --> - -<!-- = mal2html.block.mode % media/image = --> -<xsl:template mode="mal2html.block.mode" - match="mal:media[@type='image']"> - <div class="media media-image"> - <img src="{@href}"/> - </div> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-page.xsl b/sandbox/mallard/xslt/mal2html-page.xsl deleted file mode 100644 index 6fb6ff8..0000000 --- a/sandbox/mallard/xslt/mal2html-page.xsl +++ /dev/null @@ -1,789 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - Pages - -REMARK: Describe this module ---> - - -<!--**========================================================================== -mal2html.page.copyright -Outputs the copyright notice at the bottom of a page -$node: The top-level #{page} element - -REMARK: Describe this template ---> -<xsl:template name="db2html.page.copyrights"> - <xsl:param name="node"/> - <div class="copyrights"> - <xsl:for-each select="$node/mal:info/mal:copyright"> - <div class="copyright"> - <!-- FIXME: i18n --> - <xsl:value-of select="concat('© ', @year, ' ', @name)"/> - </div> - </xsl:for-each> - </div> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.guidelinks -Outputs the automatic links from a page to guide pages and sections -$node: The #{page} or #{section} element containing the links - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.guidelinks"> - <xsl:param name="node" select="."/> - <xsl:variable name="id"> - <xsl:choose> - <xsl:when test="$node/self::mal:section"> - <xsl:value-of select="concat(ancestor::mal:page[1]/@id, '#', @id)"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <!-- FIXME: // is slow --> - <xsl:variable name="pagelinks" - select="$cache//*[mal:info/mal:link[@type = 'topic'][@xref = $id]]"/> - <xsl:variable name="guidelinks" - select="$node/mal:info/mal:link[@type = 'guide']"/> - <xsl:if test="$pagelinks or $guidelinks"> - <ul class="guidelinks"> - <xsl:for-each select="$pagelinks"> - <xsl:variable name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($guidelinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last() and count($guidelinks) = 0"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:call-template name="mal2html.page.guidelink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="."/> - <xsl:with-param name="position" select="$position"/> - </xsl:call-template> - </xsl:for-each> - <!-- FIXME: exclude pagelinks --> - <xsl:for-each select="$guidelinks"> - <xsl:variable name="linkid"> - <xsl:choose> - <xsl:when test="contains(@xref, '#')"> - <xsl:value-of select="@xref"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="concat(@xref, '#', @xref)"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($pagelinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1 and count($pagelinks) = 0"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last()"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:for-each select="$cache"> - <xsl:call-template name="mal2html.page.guidelink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="key('cache_key', $linkid)"/> - <xsl:with-param name="position" select="$position"/> - </xsl:call-template> - </xsl:for-each> - </xsl:for-each> - </ul> - </xsl:if> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.guidelink -Outputs an automatic link block from a page or section to a guide -$node: The #{page} or #{section} element containing the link -$page: The element from the cache file of the page being linked to -$position: The position of this link in the list, either 'first', 'last', or '' - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.guidelink"> - <xsl:param name="node" select="."/> - <xsl:param name="page"/> - <xsl:param name="position"/> - <xsl:variable name="xref"> - <xsl:choose> - <xsl:when test="$page/self::mal:section"> - <xsl:value-of select="$page/ancestor::mal:page[1]/@id"/> - <xsl:text>#</xsl:text> - <xsl:value-of select="$page/@id"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$page/@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <li> - <xsl:attribute name="class"> - <xsl:text>guidelink</xsl:text> - <xsl:choose> - <xsl:when test="$position = 'only'"> - <xsl:text> guidelink-only</xsl:text> - </xsl:when> - <xsl:when test="$position = 'first'"> - <xsl:text> guidelink-first</xsl:text> - </xsl:when> - <xsl:when test="$position = 'last'"> - <xsl:text> guidelink-last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:attribute> - <a> - <xsl:attribute name="href"> - <xsl:call-template name="mal.link.target"> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name="mal.link.content"> - <xsl:with-param name="node" select="."/> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </a> - </li> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.pagelinks -Outputs the automatic links from a guide page or guide section -$node: The #{page} or #{section} element containing the links - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.pagelinks"> - <xsl:param name="node" select="."/> - <xsl:variable name="id"> - <xsl:choose> - <xsl:when test="$node/self::mal:section"> - <xsl:value-of select="concat(ancestor::mal:page[1]/@id, '#', @id)"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="pagelinks" - select="$node/mal:info/mal:link[@type = 'topic']"/> - <!-- FIXME: // selectors are slow --> - <!-- FIXME: exclude $pagelinks from $guidelinks --> - <xsl:variable name="guidelinks" - select="$cache//*[mal:info/mal:link[@type = 'guide'][@xref = $id]]"/> - <xsl:if test="$pagelinks or $guidelinks"> - <div class="pagelinks"> - <xsl:for-each select="$pagelinks"> - <xsl:variable name="linkid"> - <xsl:choose> - <xsl:when test="contains(@xref, '#')"> - <xsl:value-of select="@xref"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="concat(@xref, '#', @xref)"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($guidelinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last() and count($guidelinks) = 0"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:for-each select="$cache"> - <xsl:call-template name="mal2html.page.pagelink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="key('cache_key', $linkid)"/> - <xsl:with-param name="position" select="$position"/> - </xsl:call-template> - </xsl:for-each> - </xsl:for-each> - <xsl:for-each select="$guidelinks"> - <xsl:sort select="mal:info/mal:link[@type = 'guide'][@xref = $id]/@weight" - data-type="number" order="descending"/> - <!-- FIXME: lang --> - <xsl:sort select="mal:info/mal:title[@type = 'sort']" - data-type="text" order="ascending"/> - <xsl:call-template name="mal2html.page.pagelink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="."/> - <xsl:with-param name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($pagelinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1 and count($pagelinks) = 0"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last()"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:with-param> - </xsl:call-template> - </xsl:for-each> - </div> - </xsl:if> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.pagelink -Outputs an automatic link block from a guide to a page -$node: The #{guide} or #{section} element containing the link -$page: The element from the cache file of the page being linked to -$position: The position of this link in the list, either 'first', 'last', or '' - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.pagelink"> - <xsl:param name="node" select="."/> - <xsl:param name="page"/> - <xsl:param name="position"/> - <xsl:variable name="xref"> - <xsl:choose> - <xsl:when test="$page/self::mal:section"> - <xsl:value-of select="$page/ancestor::mal:page[1]/@id"/> - <xsl:text>#</xsl:text> - <xsl:value-of select="$page/@id"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$page/@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="linkid"> - <xsl:choose> - <xsl:when test="contains($xref, '#')"> - <xsl:value-of select="$xref"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="concat($xref, '#', $xref)"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <a> - <xsl:attribute name="href"> - <xsl:call-template name="mal.link.target"> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </xsl:attribute> - <div> - <xsl:attribute name="class"> - <xsl:text>pagelink</xsl:text> - <xsl:choose> - <xsl:when test="$position = 'only'"> - <xsl:text> pagelink-only</xsl:text> - </xsl:when> - <xsl:when test="$position = 'first'"> - <xsl:text> pagelink-first</xsl:text> - </xsl:when> - <xsl:when test="$position = 'last'"> - <xsl:text> pagelink-last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:attribute> - <!-- FIXME: call a common linkifier? --> - <div class="title"> - <xsl:call-template name="mal.link.content"> - <xsl:with-param name="node" select="."/> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </div> - <xsl:for-each select="$cache"> - <xsl:variable name="desc" - select="key('cache_key', $linkid)/mal:info/mal:desc[1]"/> - <xsl:if test="$desc"> - <div class="desc"> - <!-- FIXME: should desc contain inline or block? --> - <xsl:apply-templates mode="mal2html.inline.mode" select="$desc/node()"/> - </div> - </xsl:if> - </xsl:for-each> - </div> - </a> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.seealsolinks -Outputs the automatic seealso links from a page related pages -$node: The #{topic} or #{section} element containing the links - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.seealsolinks"> - <xsl:param name="node" select="."/> - <xsl:variable name="id"> - <xsl:choose> - <xsl:when test="$node/self::mal:section"> - <xsl:value-of select="concat(ancestor::mal:page[1]/@id, '#', @id)"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <!-- FIXME: // is slow --> - <xsl:variable name="inlinks" - select="$cache//*[mal:info/mal:link[@type = 'seealso'][@xref = $id]]"/> - <xsl:variable name="outlinks" - select="$node/mal:info/mal:link[@type = 'seealso']"/> - <xsl:if test="$inlinks or $outlinks"> - <div class="seealsolinks"> - <!-- FIXME: i18n --> - <div class="title">See Also</div> - <xsl:for-each select="$inlinks"> - <xsl:call-template name="mal2html.page.seealsolink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="."/> - <xsl:with-param name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($outlinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last() and count($outlinks) = 0"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:with-param> - </xsl:call-template> - </xsl:for-each> - <xsl:for-each select="$outlinks"> - <xsl:variable name="linkid"> - <xsl:choose> - <xsl:when test="contains(@xref, '#')"> - <xsl:value-of select="@xref"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="concat(@xref, '#', @xref)"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="position"> - <xsl:choose> - <xsl:when test="last() = 1 and count($inlinks) = 0"> - <xsl:text>only</xsl:text> - </xsl:when> - <xsl:when test="position() = 1 and count($inlinks) = 0"> - <xsl:text>first</xsl:text> - </xsl:when> - <xsl:when test="position() = last()"> - <xsl:text>last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:for-each select="$cache"> - <xsl:call-template name="mal2html.page.seealsolink"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="page" select="key('cache_key', $linkid)"/> - <xsl:with-param name="position" select="$position"/> - </xsl:call-template> - </xsl:for-each> - </xsl:for-each> - </div> - </xsl:if> - <!-- END guidelinks --> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.seealsolink -Outputs an automatic link block for a seealso link -$node: The #{topic} or #{section} element containing the link -$page: The element from the cache file of the page being linked to -$position: The position of this link in the list, either 'first', 'last', or '' - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.seealsolink"> - <xsl:param name="node" select="."/> - <xsl:param name="page"/> - <xsl:param name="position"/> - <xsl:variable name="xref"> - <xsl:choose> - <xsl:when test="$page/self::mal:section"> - <xsl:value-of select="$page/ancestor::mal:page[1]/@id"/> - <xsl:text>#</xsl:text> - <xsl:value-of select="$page/@id"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$page/@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <div> - <xsl:attribute name="class"> - <xsl:text>seealsolink</xsl:text> - <xsl:choose> - <xsl:when test="$position = 'only'"> - <xsl:text> seealsolink-only</xsl:text> - </xsl:when> - <xsl:when test="$position = 'first'"> - <xsl:text> seealsolink-first</xsl:text> - </xsl:when> - <xsl:when test="$position = 'last'"> - <xsl:text> seealsolink-last</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:attribute> - <a> - <xsl:attribute name="href"> - <xsl:call-template name="mal.link.target"> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name="mal.link.content"> - <xsl:with-param name="node" select="."/> - <xsl:with-param name="xref" select="$xref"/> - </xsl:call-template> - </a> - </div> -</xsl:template> - - -<!--**========================================================================== -mal2html.page.css -Outputs CSS that controls the appearance of page elements - -REMARK: Describe this template ---> -<xsl:template name="mal2html.page.css"> -<xsl:text> -html { height: 100%; } -body { - direction: </xsl:text><xsl:call-template name="l10n.direction"/><xsl:text>; - margin: 0px; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-background'"/> - </xsl:call-template> - <xsl:text>; - padding: 12px; - min-height: 100%; -} -<!-- FIXME: only in editor mode & better colors --> -<!-- -body.status-stub { background-color: #ffedc9; } -body.status-draft { background-color: #ffedc9; } -body.status-incomplete { background-color: #ffedc9; } -body.status-review { background-color: #ffedc9; } ---> -div.version { - margin: 0 0 1em 0; - padding: 0.5em 1em 0.5em 1em; - max-width: 60em; - border: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'yellow-background'"/> - </xsl:call-template> - <xsl:text>; -} -div.version p.version { - margin-top: 0.2em; -} -div.body { - margin: 0; - padding: 1em; - max-width: 60em; - min-height: 20em; - border: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-border'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'background'"/> - </xsl:call-template> - <xsl:text>; -} -div.copyrights { - text-align: center; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text-light'"/> - </xsl:call-template> - <xsl:text>; -} -div.section { margin-top: 2em; clear: both; } -div.section div.section { margin-top: 1.72em; margin-left: 1.72em; } -div.section div.section div.section { margin-top: 1.44em; } -div.header { - margin: 0; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text-light'"/> - </xsl:call-template> - <xsl:text>; - border-bottom: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-border'"/> - </xsl:call-template> - <xsl:text>; -} -div.section div.section div.header { border: none; } -h1, h2, h3, h4, h5, h6, h7 { margin: 0; } -h1.title { font-size: 1.72em; } -h2.title { font-size: 1.44em; } -h3.title { font-size: 1.2em; } -h4.title { font-size: 1em; } -h5.title { font-size: 1em; } -h6.title { font-size: 1em; } -h7.title { font-size: 1em; } - -div.pagelink div.title { - font-size: 1em; - color: inherit; -} -div.pagelink div.desc { - margin-top: 0.2em; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'text-light'"/> - </xsl:call-template> - <xsl:text>; -} -div.pagelink { - margin: 0; - padding: 0.5em; - border: solid 1px </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'background'"/> - </xsl:call-template> - <xsl:text>; -} -div.pagelink:hover { - border-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'blue-medium'"/> - </xsl:call-template> - <xsl:text>; - background-color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'blue-light'"/> - </xsl:call-template> - <xsl:text>; -} -ul.guidelinks { - display: block; - margin: 0; - text-align: right; -} -li.guidelink { display: inline; } -li.guidelink::before { - content: ' • '; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-dark'"/> - </xsl:call-template> - <xsl:text>; -} -li.guidelink-first::before, li.guidelink-only::before { - content: ''; -} -div.seealsolinks { margin: 0; } -div.seealsolink { - display: inline; -} -div.seealsolink::before { - content: ' • '; - color: </xsl:text> - <xsl:call-template name="theme.get_color"> - <xsl:with-param name="id" select="'gray-dark'"/> - </xsl:call-template> - <xsl:text>; -} -div.seealsolink-first::before, div.seealsolink-only::before { - content: ' : '; -} -</xsl:text> -</xsl:template> - - -<!-- == Matched Templates == --> - -<!-- = / = --> -<xsl:template match="/"> - <!-- FIXME: find a way to just select the version element --> - <xsl:variable name="date"> - <xsl:for-each select="mal:page/mal:info/mal:version"> - <xsl:sort select="@date" data-type="text" order="descending"/> - <xsl:if test="position() = 1"> - <xsl:value-of select="@date"/> - </xsl:if> - </xsl:for-each> - </xsl:variable> - <xsl:variable name="version" - select="mal:page/mal:info/mal:version[@date = $date][last()]"/> - <html> - <head> - <title> - <xsl:value-of select="mal:page/mal:title"/> - </title> - <xsl:call-template name="mal2html.css"/> - </head> - <body> - <!-- FIXME: only in editor mode --> - <xsl:if test="$version/@status != ''"> - <xsl:attribute name="class"> - <xsl:value-of select="concat(' status-', $version/@status)"/> - </xsl:attribute> - <div class="version"> - <!-- FIXME: i18n --> - <div class="title">Version Information</div> - <p class="version"> - <xsl:text>Version </xsl:text> - <xsl:value-of select="$version/@number"/> - <xsl:text> on </xsl:text> - <xsl:value-of select="$version/@date"/> - <xsl:text> (</xsl:text> - <xsl:choose> - <xsl:when test="$version/@status = 'stub'"> - <xsl:text>Stub</xsl:text> - </xsl:when> - <xsl:when test="$version/@status = 'incomplete'"> - <xsl:text>Incomplete</xsl:text> - </xsl:when> - <xsl:when test="$version/@status = 'draft'"> - <xsl:text>Draft</xsl:text> - </xsl:when> - <xsl:when test="$version/@status = 'review'"> - <xsl:text>Ready for review</xsl:text> - </xsl:when> - <xsl:when test="$version/@status = 'final'"> - <xsl:text>Final</xsl:text> - </xsl:when> - </xsl:choose> - <xsl:text>)</xsl:text> - </p> - <xsl:apply-templates mode="mal2html.block.mode" select="$version/*"/> - </div> - </xsl:if> - <div class="body"> - <xsl:apply-templates select="mal:page"/> - </div> - <xsl:call-template name="db2html.page.copyrights"> - <xsl:with-param name="node" select="mal:page"/> - </xsl:call-template> - </body> - </html> -</xsl:template> - -<!-- = guide = --> -<xsl:template match="mal:page"> - <div class="header"> - <xsl:apply-templates mode="mal2html.block.mode" - select="mal:title | mal:subtitle"/> - </div> - <xsl:call-template name="mal2html.page.guidelinks"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <xsl:call-template name="mal2html.page.seealsolinks"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <div class="contents"> - <xsl:apply-templates - mode="mal2html.block.mode" - select="*[not(self::mal:section | self::mal:title | self::mal:subtitle)]"/> - <xsl:if test="@type = 'guide'"> - <xsl:call-template name="mal2html.page.pagelinks"/> - </xsl:if> - </div> - <xsl:apply-templates select="mal:section"/> -</xsl:template> - -<!-- = section = --> -<xsl:template match="mal:section"> - <div class="section" id="{@id}"> - <div class="header"> - <xsl:apply-templates mode="mal2html.block.mode" - select="mal:title | mal:subtitle"/> - </div> - <xsl:call-template name="mal2html.page.guidelinks"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <xsl:call-template name="mal2html.page.seealsolinks"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <div class="contents"> - <xsl:apply-templates - mode="mal2html.block.mode" - select="*[not(self::mal:section | self::mal:title | self::mal:subtitle)]"/> - <xsl:if test="/mal:page/@type = 'guide'"> - <xsl:call-template name="mal2html.page.pagelinks"/> - </xsl:if> - </div> - <xsl:apply-templates select="mal:section"/> - </div> -</xsl:template> - -<!-- = title = --> -<xsl:template mode="mal2html.block.mode" match="mal:title"> - <xsl:variable name="depth" - select="count(ancestor::mal:section) + 1"/> - <xsl:element name="{concat('h', $depth)}"> - <xsl:attribute name="class"> - <xsl:text>title</xsl:text> - </xsl:attribute> - <xsl:apply-templates mode="mal2html.inline.mode"/> - </xsl:element> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html-table.xsl b/sandbox/mallard/xslt/mal2html-table.xsl deleted file mode 100644 index 3598f6e..0000000 --- a/sandbox/mallard/xslt/mal2html-table.xsl +++ /dev/null @@ -1,407 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns:str="http://exslt.org/strings" - xmlns="http://www.w3.org/1999/xhtml" - extension-element-prefixes="str" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - Table Elements - -REMARK: Describe this module ---> - - -<!--**========================================================================== -mal2html.table.css -Outputs CSS that controls the appearance of tables - -REMARK: Describe this template ---> -<xsl:template name="mal2html.table.css"> -<xsl:text> -table.table { - border-collapse: collapse; - border-color: #555753; - border-width: 1px; -} -td { - padding: 0.5em; - border-color: #888a85; - border-width: 1px; -} -</xsl:text> -</xsl:template> - - -<!-- == Matched Templates == --> - -<!-- = table = --> -<xsl:template mode="mal2html.block.mode" match="mal:table"> - <xsl:variable name="cols" select="mal:col | mal:colgroup/mal:col"/> - <xsl:variable name="style"> - <xsl:if test="@frame and @frame != 'none'"> - <xsl:choose> - <xsl:when test="@frame = 'all'"> - <xsl:text>border-style: solid;</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:for-each select="str:split(@frame)"> - <xsl:choose> - <xsl:when test=". = 'top'"> - <xsl:text>border-top-style: solid;</xsl:text> - </xsl:when> - <xsl:when test=". = 'bottom'"> - <xsl:text>border-bottom-style: solid;</xsl:text> - </xsl:when> - <xsl:when test=". = 'left'"> - <xsl:text>border-left-style: solid;</xsl:text> - </xsl:when> - <xsl:when test=". = 'right'"> - <xsl:text>border-right-style: solid;</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:if> - </xsl:variable> - <xsl:variable name="rowrules"> - <xsl:choose> - <xsl:when test="not(@rules) or @rules = 'none'"> - <xsl:text>none</xsl:text> - </xsl:when> - <xsl:when test="@rules = 'all'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test="@rules = 'groups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:for-each select="str:split(@rules)"> - <xsl:choose> - <xsl:when test=". = 'rows'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test=". = 'rowgroups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="colrules"> - <xsl:choose> - <xsl:when test="not(@rules) or @rules = 'none'"> - <xsl:text>none</xsl:text> - </xsl:when> - <xsl:when test="@rules = 'all'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test="@rules = 'groups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:for-each select="str:split(@rules)"> - <xsl:choose> - <xsl:when test=". = 'cols'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test=". = 'colgroups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="rowshade"> - <xsl:choose> - <xsl:when test="not(@shade) or @shade = 'none'"> - <xsl:text>none</xsl:text> - </xsl:when> - <xsl:when test="@shade = 'all'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test="@shade = 'groups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:for-each select="str:split(@shade)"> - <xsl:choose> - <xsl:when test=". = 'rows'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test=". = 'rowgroups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="colshade"> - <xsl:choose> - <xsl:when test="not(@shade) or @shade = 'none'"> - <xsl:text>none</xsl:text> - </xsl:when> - <xsl:when test="@shade = 'all'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test="@shade = 'groups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:for-each select="str:split(@shade)"> - <xsl:choose> - <xsl:when test=". = 'cols'"> - <xsl:text>all</xsl:text> - </xsl:when> - <xsl:when test=". = 'colgroups'"> - <xsl:text>groups</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <div class="table"> - <table class="table"> - <xsl:if test="$style != ''"> - <xsl:attribute name="style"> - <xsl:value-of select="$style"/> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates select="mal:thead"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - <xsl:apply-templates select="mal:tfoot"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - <xsl:apply-templates select="mal:tr | mal:tbody"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - </table> - </div> -</xsl:template> - -<!-- = tbody = --> -<xsl:template match="mal:tbody"> - <xsl:param name="cols"/> - <xsl:param name="rowrules"/> - <xsl:param name="colrules"/> - <xsl:param name="rowshade"/> - <xsl:param name="colshade"/> - <tbody> - <xsl:apply-templates select="mal:tr"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - </tbody> -</xsl:template> - -<!-- = thead = --> -<xsl:template match="mal:thead"> - <xsl:param name="cols"/> - <xsl:param name="rowrules"/> - <xsl:param name="colrules"/> - <xsl:param name="rowshade"/> - <xsl:param name="colshade"/> - <thead> - <xsl:apply-templates select="mal:tr"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - </thead> -</xsl:template> - -<!-- = tfoot = --> -<xsl:template match="mal:tfoot"> - <xsl:param name="cols"/> - <xsl:param name="rowrules"/> - <xsl:param name="colrules"/> - <xsl:param name="rowshade"/> - <xsl:param name="colshade"/> - <tfoot> - <xsl:apply-templates select="mal:tr"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - </tfoot> -</xsl:template> - -<!-- = tr = --> -<xsl:template match="mal:tr"> - <xsl:param name="cols"/> - <xsl:param name="rowrules"/> - <xsl:param name="colrules"/> - <xsl:param name="rowshade"/> - <xsl:param name="colshade"/> - <tr> - <xsl:apply-templates select="mal:td"> - <xsl:with-param name="cols" select="$cols"/> - <xsl:with-param name="rowrules" select="$rowrules"/> - <xsl:with-param name="colrules" select="$colrules"/> - <xsl:with-param name="rowshade" select="$rowshade"/> - <xsl:with-param name="colshade" select="$colshade"/> - </xsl:apply-templates> - </tr> -</xsl:template> - -<!-- = td = --> -<xsl:template match="mal:td"> - <xsl:param name="cols"/> - <xsl:param name="rowrules"/> - <xsl:param name="colrules"/> - <xsl:param name="rowshade"/> - <xsl:param name="colshade"/> - <xsl:variable name="trpos" select="count(../preceding-sibling::mal:tr) + 1"/> - <xsl:variable name="tdpos" select="count(preceding-sibling::mal:td) + 1"/> - <!-- FIXME: this all breaks with rowspan/colspan --> - <xsl:variable name="shaderow"> - <xsl:choose> - <xsl:when test="$rowshade = 'all'"> - <xsl:choose> - <xsl:when test="../../self::mal:table"> - <xsl:value-of select="($trpos + 1) mod 2"/> - </xsl:when> - <xsl:otherwise> - <xsl:variable name="bodies" - select="../../preceding-sibling::mal:tbody | - ../../preceding-sibling::mal:thead "/> - <xsl:variable name="trcount" select="count($bodies/mal:tr) + $trpos"/> - <xsl:value-of select="($trcount + 1) mod 2"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:when test="$rowshade = 'groups'"> - <xsl:variable name="bodies" - select="../../preceding-sibling::mal:tbody | - ../../preceding-sibling::mal:thead "/> - <xsl:value-of select="count($bodies) mod 2"/> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:variable name="shadecol"> - <xsl:choose> - <xsl:when test="$colshade = 'all'"> - <xsl:value-of select="($tdpos + 1) mod 2"/> - </xsl:when> - <xsl:when test="$colshade = 'groups'"> - <xsl:if test="count($cols) >= $tdpos"> - <xsl:variable name="col" select="$cols[$tdpos]"/> - <xsl:if test="$col/../self::mal:colgroup"> - <xsl:value-of - select="count($col/../preceding-sibling::mal:colgroup) mod 2"/> - </xsl:if> - </xsl:if> - <!-- FIXME --> - </xsl:when> - </xsl:choose> - </xsl:variable> - <xsl:variable name="style"> - <xsl:choose> - <xsl:when test="$rowrules = 'all'"> - <xsl:choose> - <xsl:when test="../../self::mal:table"> - <xsl:if test="$trpos != 1"> - <xsl:text>border-top-style: solid;</xsl:text> - </xsl:if> - </xsl:when> - <xsl:when test="$trpos != 1 or - ../../preceding-sibling::mal:thead or - ../../preceding-sibling::mal:tbody "> - <xsl:text>border-top-style: solid;</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:when> - <xsl:when test="$rowrules = 'groups'"> - <xsl:if test="$trpos = 1"> - <xsl:choose> - <xsl:when test="../../self::mal:tbody"> - <xsl:if test="../../../mal:thead | ../../preceding-sibling::mal:tbody"> - <xsl:text>border-top-style: solid;</xsl:text> - </xsl:if> - </xsl:when> - <xsl:when test="../../self::mal:tfoot"> - <xsl:text>border-top-style: solid;</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:if> - </xsl:when> - </xsl:choose> - <xsl:choose> - <xsl:when test="$tdpos = 1"/> - <xsl:when test="$colrules = 'all'"> - <xsl:text>border-left-style: solid;</xsl:text> - </xsl:when> - <xsl:when test="$colrules = 'groups'"> - <xsl:if test="count($cols) >= $tdpos"> - <xsl:variable name="col" select="$cols[$tdpos]"/> - <xsl:if test="$col/../self::mal:colgroup and - not($col/preceding-sibling::mal:col)"> - <xsl:text>border-left-style: solid;</xsl:text> - </xsl:if> - </xsl:if> - </xsl:when> - </xsl:choose> - <xsl:choose> - <xsl:when test="$shaderow = 1 and $shadecol = 1"> - <xsl:text>background-color: #d3d7cf;</xsl:text> - </xsl:when> - <xsl:when test="$shaderow = 1 or $shadecol = 1"> - <xsl:text>background-color: #eeeeec;</xsl:text> - </xsl:when> - </xsl:choose> - </xsl:variable> - <td> - <xsl:if test="$style != ''"> - <xsl:attribute name="style"> - <xsl:value-of select="$style"/> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="mal2html.block.mode"/> - </td> -</xsl:template> - -</xsl:stylesheet> diff --git a/sandbox/mallard/xslt/mal2html.xsl b/sandbox/mallard/xslt/mal2html.xsl deleted file mode 100644 index cbe3ac6..0000000 --- a/sandbox/mallard/xslt/mal2html.xsl +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> -<!-- -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU Lesser General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your option) any -later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; see the file COPYING.LGPL. If not, write to the -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:mal="http://www.gnome.org/~shaunm/mallard" - xmlns="http://www.w3.org/1999/xhtml" - version="1.0"> - -<!--!!========================================================================== -Mallard to HTML - -REMARK: Describe this module ---> - -<xsl:include href="mal-link.xsl"/> - -<xsl:include href="mal2html-block.xsl"/> -<xsl:include href="mal2html-css.xsl"/> -<xsl:include href="mal2html-inline.xsl"/> -<xsl:include href="mal2html-list.xsl"/> -<xsl:include href="mal2html-media.xsl"/> -<xsl:include href="mal2html-page.xsl"/> -<xsl:include href="mal2html-table.xsl"/> - -<xsl:include href="theme.xsl"/> -<xsl:include href="util.xsl"/> - -<xsl:param name="mal.extension" select="'.xhtml'"/> -<xsl:param name="mal.cache_file"/> -<xsl:variable name="cache" select="document($mal.cache_file)"/> -<xsl:key name="cache_key" match="*[@id]" - use="concat(ancestor-or-self::mal:page[1]/@id, '#', @id)"/> - -<!-- FIXME --> -<xsl:template match="*"> - <xsl:message> - <xsl:text>Unmatched element: </xsl:text> - <xsl:value-of select="local-name(.)"/> - </xsl:message> - <xsl:apply-templates/> -</xsl:template> - -<!-- FIXME --> -<xsl:template name="l10n.gettext"> - <xsl:param name="msgid" select="'email.tooltip'"/> - <xsl:value-of select="$msgid"/> -</xsl:template> -<xsl:template name="l10n.direction"> - <xsl:text>ltr</xsl:text> -</xsl:template> - -</xsl:stylesheet> |