From d0a2fe589c3a3277c2ce91ec94e2f82f17e7e3cd Mon Sep 17 00:00:00 2001
From: Shaun McCance
Date: Fri, 2 Mar 2007 16:27:05 +0000
Subject: - Adding stubs for design principles and explantory content
* spec/10minutes.xml:
* spec/explore.xml:
* spec/principle-guide.xml:
* spec/principle-justenough.xml:
* spec/principle-redundancy.xml:
* spec/principles.xml:
- Adding stubs for design principles and explantory content
* spec/*.xml:
- Adding version information and stub content to all pages
* spec/mallard.xml:
* spec/spec.xml:
* spec/spec_info.xml:
* spec/spec_pages.xml:
- Adding some guide pages
* spec/figures/mallard.png:
- Adding Drake
* spec/TODO:
- Adding 'Best Practices' to section list
* xslt/mal2html.xsl:
* xslt/mal2html-page.xsl:
- Better page handling, page and guide links added
* xslt/theme.xml:
* xslt/theme.xsl:
- New module for themeable colors and icons
* xslt/mal2cache.xsl:
- Ensure info elements are always created
* xslt/mal-link.xsl:
- Ensure link content is correct for sections
* xslt/mal2html-table.xsl:
- Partial table support
* xslt/mal2html-css.xsl:
- Moved page CSS to mal2html-page.xsl
* xslt/mal2html-block.xsl:
- Using new themeable colors
* xslt/mal2html-list.xsl:
- Partial support for tree lists
* html/Makefile:
- Make targets depend on the XSLT
svn path=/trunk/; revision=893
---
sandbox/mallard/ChangeLog | 54 +++
sandbox/mallard/html/Makefile | 6 +-
sandbox/mallard/spec/10minutes.xml | 15 +
sandbox/mallard/spec/TODO | 1 +
sandbox/mallard/spec/explore.xml | 15 +
sandbox/mallard/spec/figures/mallard.png | Bin 0 -> 725 bytes
sandbox/mallard/spec/mal_block.xml | 2 +
sandbox/mallard/spec/mal_caption.xml | 4 +-
sandbox/mallard/spec/mal_cite.xml | 4 +-
sandbox/mallard/spec/mal_cmd.xml | 11 +-
sandbox/mallard/spec/mal_code.xml | 9 +-
sandbox/mallard/spec/mal_comment.xml | 1 +
sandbox/mallard/spec/mal_copyright.xml | 13 +-
sandbox/mallard/spec/mal_credit.xml | 8 +-
sandbox/mallard/spec/mal_em.xml | 1 +
sandbox/mallard/spec/mal_figure.xml | 1 +
sandbox/mallard/spec/mal_file.xml | 1 +
sandbox/mallard/spec/mal_gui.xml | 3 +-
sandbox/mallard/spec/mal_guide.xml | 2 +
sandbox/mallard/spec/mal_inline.xml | 18 +-
sandbox/mallard/spec/mal_input.xml | 10 +-
sandbox/mallard/spec/mal_key.xml | 10 +-
sandbox/mallard/spec/mal_license.xml | 10 +-
sandbox/mallard/spec/mal_link.xml | 10 +-
sandbox/mallard/spec/mal_list.xml | 1 +
sandbox/mallard/spec/mal_list_bullet.xml | 1 +
sandbox/mallard/spec/mal_list_definition.xml | 1 +
sandbox/mallard/spec/mal_list_numbered.xml | 1 +
sandbox/mallard/spec/mal_list_tree.xml | 1 +
sandbox/mallard/spec/mal_media.xml | 11 +-
sandbox/mallard/spec/mal_note.xml | 10 +-
sandbox/mallard/spec/mal_output.xml | 10 +-
sandbox/mallard/spec/mal_p.xml | 1 +
sandbox/mallard/spec/mal_quote.xml | 18 +-
sandbox/mallard/spec/mal_screen.xml | 3 +-
sandbox/mallard/spec/mal_section.xml | 10 +-
sandbox/mallard/spec/mal_synopsis.xml | 1 +
sandbox/mallard/spec/mal_sys.xml | 10 +-
sandbox/mallard/spec/mal_topic.xml | 2 +
sandbox/mallard/spec/mal_var.xml | 10 +-
sandbox/mallard/spec/mal_version.xml | 20 +
sandbox/mallard/spec/mallard.xml | 18 +
sandbox/mallard/spec/principle-guide.xml | 11 +
sandbox/mallard/spec/principle-justenough.xml | 12 +
sandbox/mallard/spec/principle-redundancy.xml | 11 +
sandbox/mallard/spec/principles.xml | 43 ++
sandbox/mallard/spec/spec.xml | 14 +
sandbox/mallard/spec/spec_info.xml | 10 +
sandbox/mallard/spec/spec_pages.xml | 15 +
sandbox/mallard/xslt/mal-link.xsl | 18 +-
sandbox/mallard/xslt/mal2cache.xsl | 53 ++-
sandbox/mallard/xslt/mal2html-block.xsl | 108 +++--
sandbox/mallard/xslt/mal2html-css.xsl | 18 +-
sandbox/mallard/xslt/mal2html-list.xsl | 90 ++++
sandbox/mallard/xslt/mal2html-page.xsl | 597 ++++++++++++++++++++++++++
sandbox/mallard/xslt/mal2html-table.xsl | 407 ++++++++++++++++++
sandbox/mallard/xslt/mal2html.xsl | 73 +---
sandbox/mallard/xslt/theme.xml | 49 +++
sandbox/mallard/xslt/theme.xsl | 78 ++++
59 files changed, 1785 insertions(+), 160 deletions(-)
create mode 100644 sandbox/mallard/spec/10minutes.xml
create mode 100644 sandbox/mallard/spec/explore.xml
create mode 100644 sandbox/mallard/spec/figures/mallard.png
create mode 100644 sandbox/mallard/spec/mal_version.xml
create mode 100644 sandbox/mallard/spec/mallard.xml
create mode 100644 sandbox/mallard/spec/principle-guide.xml
create mode 100644 sandbox/mallard/spec/principle-justenough.xml
create mode 100644 sandbox/mallard/spec/principle-redundancy.xml
create mode 100644 sandbox/mallard/spec/principles.xml
create mode 100644 sandbox/mallard/spec/spec.xml
create mode 100644 sandbox/mallard/spec/spec_info.xml
create mode 100644 sandbox/mallard/spec/spec_pages.xml
create mode 100644 sandbox/mallard/xslt/mal2html-list.xsl
create mode 100644 sandbox/mallard/xslt/mal2html-page.xsl
create mode 100644 sandbox/mallard/xslt/mal2html-table.xsl
create mode 100644 sandbox/mallard/xslt/theme.xml
create mode 100644 sandbox/mallard/xslt/theme.xsl
diff --git a/sandbox/mallard/ChangeLog b/sandbox/mallard/ChangeLog
index 048975c..8842e94 100644
--- a/sandbox/mallard/ChangeLog
+++ b/sandbox/mallard/ChangeLog
@@ -1,3 +1,57 @@
+2007-03-02 Shaun McCance
+
+ * spec/10minutes.xml:
+ * spec/explore.xml:
+ * spec/principle-guide.xml:
+ * spec/principle-justenough.xml:
+ * spec/principle-redundancy.xml:
+ * spec/principles.xml:
+ - Adding stubs for design principles and explantory content
+
+ * spec/*.xml:
+ - Adding version information and stub content to all pages
+
+ * spec/mallard.xml:
+ * spec/spec.xml:
+ * spec/spec_info.xml:
+ * spec/spec_pages.xml:
+ - Adding some guide pages
+
+ * spec/figures/mallard.png:
+ - Adding Drake
+
+ * spec/TODO:
+ - Adding 'Best Practices' to section list
+
+ * xslt/mal2html.xsl:
+ * xslt/mal2html-page.xsl:
+ - Better page handling, page and guide links added
+
+ * xslt/theme.xml:
+ * xslt/theme.xsl:
+ - New module for themeable colors and icons
+
+ * xslt/mal2cache.xsl:
+ - Ensure info elements are always created
+
+ * xslt/mal-link.xsl:
+ - Ensure link content is correct for sections
+
+ * xslt/mal2html-table.xsl:
+ - Partial table support
+
+ * xslt/mal2html-css.xsl:
+ - Moved page CSS to mal2html-page.xsl
+
+ * xslt/mal2html-block.xsl:
+ - Using new themeable colors
+
+ * xslt/mal2html-list.xsl:
+ - Partial support for tree lists
+
+ * html/Makefile:
+ - Make targets depend on the XSLT
+
2007-02-19 Shaun McCance
* xslt/mal2html.xsl:
diff --git a/sandbox/mallard/html/Makefile b/sandbox/mallard/html/Makefile
index a56fc2a..34e714d 100644
--- a/sandbox/mallard/html/Makefile
+++ b/sandbox/mallard/html/Makefile
@@ -1,9 +1,10 @@
+xslts=$(wildcard ../xslt/*.xsl)
specs=$(filter-out ../spec/legal.xml, $(wildcard ../spec/*.xml))
pages=$(patsubst %.xml,%.xhtml, $(notdir $(specs)))
all: $(pages) figures mallard.cache
-mallard.cache : $(wildcard ../xslt/*.xsl)
+mallard.cache : $(specs) $(xslts)
echo '' > $@.in
for file in $(specs); do \
echo " " >> $@.in; \
@@ -12,8 +13,7 @@ mallard.cache : $(wildcard ../xslt/*.xsl)
xsltproc ../xslt/mal2cache.xsl $@.in | xmllint --format - > $@
rm $@.in
-$(pages) : mallard.cache
-$(pages) : $(wildcard ../xslt/*.xsl)
+$(pages) : mallard.cache ../xslt/theme.xml $(xslts)
$(pages) : %.xhtml : ../spec/%.xml
xsltproc -o $@ \
--stringparam mal.cache_file `pwd`/mallard.cache \
diff --git a/sandbox/mallard/spec/10minutes.xml b/sandbox/mallard/spec/10minutes.xml
new file mode 100644
index 0000000..b085625
--- /dev/null
+++ b/sandbox/mallard/spec/10minutes.xml
@@ -0,0 +1,15 @@
+
+
+
+ Create a multiple-page document in only ten minutes
+
+
+Ten Minute Tour
+
+
+
+ Add content
+
+
+
diff --git a/sandbox/mallard/spec/TODO b/sandbox/mallard/spec/TODO
index 92479f6..49458f7 100644
--- a/sandbox/mallard/spec/TODO
+++ b/sandbox/mallard/spec/TODO
@@ -8,6 +8,7 @@ sections:
- content: Content
- attributes: Attributes
- examples: Examples
+- best: Best Practices
- design: Design Notes
- processing: Processing Expectations
- html: Comparison to HTML
diff --git a/sandbox/mallard/spec/explore.xml b/sandbox/mallard/spec/explore.xml
new file mode 100644
index 0000000..f602e2c
--- /dev/null
+++ b/sandbox/mallard/spec/explore.xml
@@ -0,0 +1,15 @@
+
+
+
+ Explore more of what Mallard has to offer
+
+
+Explore Mallard
+
+
+
+ Add content
+
+
+
diff --git a/sandbox/mallard/spec/figures/mallard.png b/sandbox/mallard/spec/figures/mallard.png
new file mode 100644
index 0000000..0ed0645
Binary files /dev/null and b/sandbox/mallard/spec/figures/mallard.png differ
diff --git a/sandbox/mallard/spec/mal_block.xml b/sandbox/mallard/spec/mal_block.xml
index c53b7e3..556cd8d 100644
--- a/sandbox/mallard/spec/mal_block.xml
+++ b/sandbox/mallard/spec/mal_block.xml
@@ -1,6 +1,8 @@
+
+
Block Elements
diff --git a/sandbox/mallard/spec/mal_caption.xml b/sandbox/mallard/spec/mal_caption.xml
index 4de41de..a5115a5 100644
--- a/sandbox/mallard/spec/mal_caption.xml
+++ b/sandbox/mallard/spec/mal_caption.xml
@@ -1,9 +1,11 @@
-
+
+
Captions
diff --git a/sandbox/mallard/spec/mal_cite.xml b/sandbox/mallard/spec/mal_cite.xml
index 40b5555..eb64f0d 100644
--- a/sandbox/mallard/spec/mal_cite.xml
+++ b/sandbox/mallard/spec/mal_cite.xml
@@ -1,9 +1,11 @@
-
+
+
Citations
diff --git a/sandbox/mallard/spec/mal_cmd.xml b/sandbox/mallard/spec/mal_cmd.xml
index 8e6bd26..218d022 100644
--- a/sandbox/mallard/spec/mal_cmd.xml
+++ b/sandbox/mallard/spec/mal_cmd.xml
@@ -3,7 +3,7 @@
-
+
@@ -36,8 +36,8 @@ replaced by the user.
Basic Use
To start Totem Movie Player , enter totem at the
-command line.
+To start Totem Movie Player , enter totem at
+the command line.
]]>
To start Totem Movie Player , enter totem at the
command line.
@@ -46,8 +46,9 @@ command line.
Using var
To view a file in Totem Movie Player , enter totem file
-at the command line, replacing file with the name of the file.
+To view a file in Totem Movie Player , enter totem
+file at the command line, replacing file
+with the name of the file.
]]>
To view a file in Totem Movie Player , enter totem file
at the command line, replacing file with the name of the file.
diff --git a/sandbox/mallard/spec/mal_code.xml b/sandbox/mallard/spec/mal_code.xml
index 34a6aff..4cfe00f 100644
--- a/sandbox/mallard/spec/mal_code.xml
+++ b/sandbox/mallard/spec/mal_code.xml
@@ -3,6 +3,7 @@
+
Code Snippets
@@ -22,7 +23,7 @@ mal_code_inline = element code {
}
- Shaun McCance 2006-12-08
+
Add intro material.
@@ -31,7 +32,7 @@ mal_code_inline = element code {
Examples
- Shaun McCance 2007-01-25
+
Add examples.
@@ -42,7 +43,7 @@ mal_code_inline = element code {
Processing Expectations
- Shaun McCance 2007-01-25
+
Add processing expectations. For block, strip leading/trailing
newline. Do not strip leading indentation.
@@ -54,7 +55,7 @@ mal_code_inline = element code {
Comparison to DocBook
- Shaun McCance 2007-01-25
+
Add: code, class*, func*, programlisting
diff --git a/sandbox/mallard/spec/mal_comment.xml b/sandbox/mallard/spec/mal_comment.xml
index 88c8297..4519c78 100644
--- a/sandbox/mallard/spec/mal_comment.xml
+++ b/sandbox/mallard/spec/mal_comment.xml
@@ -2,6 +2,7 @@
id="mal_comment">
+
Editorial Comments
diff --git a/sandbox/mallard/spec/mal_copyright.xml b/sandbox/mallard/spec/mal_copyright.xml
index b65623e..4f1cb4c 100644
--- a/sandbox/mallard/spec/mal_copyright.xml
+++ b/sandbox/mallard/spec/mal_copyright.xml
@@ -1,2 +1,13 @@
-
+
+
+
+
+
+
+
+
+
+Copyright Information
+
diff --git a/sandbox/mallard/spec/mal_credit.xml b/sandbox/mallard/spec/mal_credit.xml
index f18a394..efbbc0e 100644
--- a/sandbox/mallard/spec/mal_credit.xml
+++ b/sandbox/mallard/spec/mal_credit.xml
@@ -1,14 +1,18 @@
-
+
+
Credits
mal_credit = element credit {
- attribute type { "author" | "editor" | "collaborator" | "translator" | "publisher" },
+ attribute type {
+ "author" | "editor" |
+ "maintainer" | "collaborator" |
+ "translator" | "publisher" },
attribute name { text },
attribute date { xsd:date } ?,
attribute email { text } ?
diff --git a/sandbox/mallard/spec/mal_em.xml b/sandbox/mallard/spec/mal_em.xml
index ba1d64f..53417df 100644
--- a/sandbox/mallard/spec/mal_em.xml
+++ b/sandbox/mallard/spec/mal_em.xml
@@ -2,6 +2,7 @@
id="mal_em">
+
Emphasis
diff --git a/sandbox/mallard/spec/mal_figure.xml b/sandbox/mallard/spec/mal_figure.xml
index 02b142d..d4f0784 100644
--- a/sandbox/mallard/spec/mal_figure.xml
+++ b/sandbox/mallard/spec/mal_figure.xml
@@ -2,6 +2,7 @@
id="mal_figure">
+
Figures
diff --git a/sandbox/mallard/spec/mal_file.xml b/sandbox/mallard/spec/mal_file.xml
index fcd3367..f460bb0 100644
--- a/sandbox/mallard/spec/mal_file.xml
+++ b/sandbox/mallard/spec/mal_file.xml
@@ -2,6 +2,7 @@
id="mal_file">
+
File Names
diff --git a/sandbox/mallard/spec/mal_gui.xml b/sandbox/mallard/spec/mal_gui.xml
index 7f3c861..767357b 100644
--- a/sandbox/mallard/spec/mal_gui.xml
+++ b/sandbox/mallard/spec/mal_gui.xml
@@ -2,9 +2,10 @@
id="mal_gui">
+
-Graphical Interface Elements
+GUI Labels
mal_gui = element gui {
diff --git a/sandbox/mallard/spec/mal_guide.xml b/sandbox/mallard/spec/mal_guide.xml
index 3673385..6ad11b7 100644
--- a/sandbox/mallard/spec/mal_guide.xml
+++ b/sandbox/mallard/spec/mal_guide.xml
@@ -1,6 +1,8 @@
+
+
Guide Pages
diff --git a/sandbox/mallard/spec/mal_inline.xml b/sandbox/mallard/spec/mal_inline.xml
index 033b9cd..356e195 100644
--- a/sandbox/mallard/spec/mal_inline.xml
+++ b/sandbox/mallard/spec/mal_inline.xml
@@ -1,6 +1,8 @@
+
+
Inline Elements
@@ -20,7 +22,8 @@ mal_inline = (
mal_output |
mal_quote_inline |
mal_sys |
- mal_inline_simple )
+ mal_inline_simple )
+mal_inline_simple = ( mal_var | text )
@@ -28,17 +31,4 @@ mal_inline = (
Add some intro text
-
-
-
-Simple Inline
-
-mal_inline_simple = (
- mal_var |
- text )
-
-
-
-
-
diff --git a/sandbox/mallard/spec/mal_input.xml b/sandbox/mallard/spec/mal_input.xml
index b65623e..7806032 100644
--- a/sandbox/mallard/spec/mal_input.xml
+++ b/sandbox/mallard/spec/mal_input.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+User Input
+
diff --git a/sandbox/mallard/spec/mal_key.xml b/sandbox/mallard/spec/mal_key.xml
index b65623e..2e611e6 100644
--- a/sandbox/mallard/spec/mal_key.xml
+++ b/sandbox/mallard/spec/mal_key.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Key Strokes
+
diff --git a/sandbox/mallard/spec/mal_license.xml b/sandbox/mallard/spec/mal_license.xml
index b65623e..89f0ee6 100644
--- a/sandbox/mallard/spec/mal_license.xml
+++ b/sandbox/mallard/spec/mal_license.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+License Information
+
diff --git a/sandbox/mallard/spec/mal_link.xml b/sandbox/mallard/spec/mal_link.xml
index b65623e..10b887a 100644
--- a/sandbox/mallard/spec/mal_link.xml
+++ b/sandbox/mallard/spec/mal_link.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Hyperlinks
+
diff --git a/sandbox/mallard/spec/mal_list.xml b/sandbox/mallard/spec/mal_list.xml
index e3a01f1..238334f 100644
--- a/sandbox/mallard/spec/mal_list.xml
+++ b/sandbox/mallard/spec/mal_list.xml
@@ -2,6 +2,7 @@
id="mal_list">
+
Lists
diff --git a/sandbox/mallard/spec/mal_list_bullet.xml b/sandbox/mallard/spec/mal_list_bullet.xml
index 64b3fb2..ad49cb6 100644
--- a/sandbox/mallard/spec/mal_list_bullet.xml
+++ b/sandbox/mallard/spec/mal_list_bullet.xml
@@ -2,6 +2,7 @@
id="mal_list_bullet">
+
Bullet Lists
diff --git a/sandbox/mallard/spec/mal_list_definition.xml b/sandbox/mallard/spec/mal_list_definition.xml
index 11d692d..0bbe172 100644
--- a/sandbox/mallard/spec/mal_list_definition.xml
+++ b/sandbox/mallard/spec/mal_list_definition.xml
@@ -2,6 +2,7 @@
id="mal_list_definition">
+
Definition Lists
diff --git a/sandbox/mallard/spec/mal_list_numbered.xml b/sandbox/mallard/spec/mal_list_numbered.xml
index 593080c..a579cb5 100644
--- a/sandbox/mallard/spec/mal_list_numbered.xml
+++ b/sandbox/mallard/spec/mal_list_numbered.xml
@@ -2,6 +2,7 @@
id="mal_list_numbered">
+
Numbered Lists
diff --git a/sandbox/mallard/spec/mal_list_tree.xml b/sandbox/mallard/spec/mal_list_tree.xml
index 1ca9e9a..a4183b3 100644
--- a/sandbox/mallard/spec/mal_list_tree.xml
+++ b/sandbox/mallard/spec/mal_list_tree.xml
@@ -2,6 +2,7 @@
id="mal_list_tree">
+
Tree Lists
diff --git a/sandbox/mallard/spec/mal_media.xml b/sandbox/mallard/spec/mal_media.xml
index b65623e..5574170 100644
--- a/sandbox/mallard/spec/mal_media.xml
+++ b/sandbox/mallard/spec/mal_media.xml
@@ -1,2 +1,11 @@
-
+
+
+
+
+
+
+
+Multimedia Objects
+
diff --git a/sandbox/mallard/spec/mal_note.xml b/sandbox/mallard/spec/mal_note.xml
index b65623e..6178ec7 100644
--- a/sandbox/mallard/spec/mal_note.xml
+++ b/sandbox/mallard/spec/mal_note.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Notes
+
diff --git a/sandbox/mallard/spec/mal_output.xml b/sandbox/mallard/spec/mal_output.xml
index b65623e..0490e65 100644
--- a/sandbox/mallard/spec/mal_output.xml
+++ b/sandbox/mallard/spec/mal_output.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Computer Output
+
diff --git a/sandbox/mallard/spec/mal_p.xml b/sandbox/mallard/spec/mal_p.xml
index 717e5b0..0e78284 100644
--- a/sandbox/mallard/spec/mal_p.xml
+++ b/sandbox/mallard/spec/mal_p.xml
@@ -2,6 +2,7 @@
id="mal_p">
+
Paragraphs
diff --git a/sandbox/mallard/spec/mal_quote.xml b/sandbox/mallard/spec/mal_quote.xml
index cc04201..779c694 100644
--- a/sandbox/mallard/spec/mal_quote.xml
+++ b/sandbox/mallard/spec/mal_quote.xml
@@ -1,4 +1,16 @@
-
-render quotes around inline
-style="epipgraph"
+
+
+
+
+
+
+Quotes
+
+
+
+ render quotes around inline
+ style="epipgraph"
+
+
diff --git a/sandbox/mallard/spec/mal_screen.xml b/sandbox/mallard/spec/mal_screen.xml
index c0ea56b..df7aaf9 100644
--- a/sandbox/mallard/spec/mal_screen.xml
+++ b/sandbox/mallard/spec/mal_screen.xml
@@ -1,7 +1,8 @@
+ id="mal_screen">
+
Screens
diff --git a/sandbox/mallard/spec/mal_section.xml b/sandbox/mallard/spec/mal_section.xml
index b65623e..c8de58a 100644
--- a/sandbox/mallard/spec/mal_section.xml
+++ b/sandbox/mallard/spec/mal_section.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Sections
+
diff --git a/sandbox/mallard/spec/mal_synopsis.xml b/sandbox/mallard/spec/mal_synopsis.xml
index 184f4b2..301bb3e 100644
--- a/sandbox/mallard/spec/mal_synopsis.xml
+++ b/sandbox/mallard/spec/mal_synopsis.xml
@@ -2,6 +2,7 @@
id="mal_synopsis">
+
Synopses
diff --git a/sandbox/mallard/spec/mal_sys.xml b/sandbox/mallard/spec/mal_sys.xml
index b65623e..75d4e12 100644
--- a/sandbox/mallard/spec/mal_sys.xml
+++ b/sandbox/mallard/spec/mal_sys.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+System Items
+
diff --git a/sandbox/mallard/spec/mal_topic.xml b/sandbox/mallard/spec/mal_topic.xml
index d5324ff..c2b3d83 100644
--- a/sandbox/mallard/spec/mal_topic.xml
+++ b/sandbox/mallard/spec/mal_topic.xml
@@ -1,6 +1,8 @@
+
+
Topic Pages
diff --git a/sandbox/mallard/spec/mal_var.xml b/sandbox/mallard/spec/mal_var.xml
index b65623e..70ea31b 100644
--- a/sandbox/mallard/spec/mal_var.xml
+++ b/sandbox/mallard/spec/mal_var.xml
@@ -1,2 +1,10 @@
-
+
+
+
+
+
+
+Variable Text
+
diff --git a/sandbox/mallard/spec/mal_version.xml b/sandbox/mallard/spec/mal_version.xml
new file mode 100644
index 0000000..5368838
--- /dev/null
+++ b/sandbox/mallard/spec/mal_version.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+Version Information
+
+
+mal_version = element version {
+ attribute number { text },
+ attribute date { xsd:date },
+ attribute status { "stub" | "incomplete" | "draft" | "review" | "final" }?,
+ mal_title?,
+ mal_desc?
+}
+
+
+
diff --git a/sandbox/mallard/spec/mallard.xml b/sandbox/mallard/spec/mallard.xml
new file mode 100644
index 0000000..ed43e05
--- /dev/null
+++ b/sandbox/mallard/spec/mallard.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+Mallard
+
+
+
+ Add some intro text
+
+
+
diff --git a/sandbox/mallard/spec/principle-guide.xml b/sandbox/mallard/spec/principle-guide.xml
new file mode 100644
index 0000000..2f45ad0
--- /dev/null
+++ b/sandbox/mallard/spec/principle-guide.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ Ensure the reader doesn't get lost in a link swarm
+
+
+Guide the Reader
+
+
diff --git a/sandbox/mallard/spec/principle-justenough.xml b/sandbox/mallard/spec/principle-justenough.xml
new file mode 100644
index 0000000..453eb07
--- /dev/null
+++ b/sandbox/mallard/spec/principle-justenough.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Provide just enough markup to mark up what's important
+
+
+Just Enough Markup
+
+
diff --git a/sandbox/mallard/spec/principle-redundancy.xml b/sandbox/mallard/spec/principle-redundancy.xml
new file mode 100644
index 0000000..43e85a7
--- /dev/null
+++ b/sandbox/mallard/spec/principle-redundancy.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ Avoid forcing writers to write the same thing twice
+
+
+Reduce Redundancy
+
+
diff --git a/sandbox/mallard/spec/principles.xml b/sandbox/mallard/spec/principles.xml
new file mode 100644
index 0000000..3ccf744
--- /dev/null
+++ b/sandbox/mallard/spec/principles.xml
@@ -0,0 +1,43 @@
+
+
+
+ The guiding principles behind the design of Mallard
+
+
+Design Principles
+
+
+
+ Add intro content
+ Add principles: pluggability, implementation speed, l10n
+
+
+
+
+ Principles for the Reader
+
+
+ For the Reader
+
+ 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.
+
+
+
+
+ Principles for the Writer
+
+ For the Writer
+
+
+
+
+ Principles for the Hacker
+
+ For the Hacker
+
+
+
diff --git a/sandbox/mallard/spec/spec.xml b/sandbox/mallard/spec/spec.xml
new file mode 100644
index 0000000..e0e9c86
--- /dev/null
+++ b/sandbox/mallard/spec/spec.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+Specification
+
+
+
+ Add some intro text
+
+
+
diff --git a/sandbox/mallard/spec/spec_info.xml b/sandbox/mallard/spec/spec_info.xml
new file mode 100644
index 0000000..984bd44
--- /dev/null
+++ b/sandbox/mallard/spec/spec_info.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+Information Elements
+
+
diff --git a/sandbox/mallard/spec/spec_pages.xml b/sandbox/mallard/spec/spec_pages.xml
new file mode 100644
index 0000000..9caade9
--- /dev/null
+++ b/sandbox/mallard/spec/spec_pages.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+Page Elements
+
+
+default namespace = "http://www.gnome.org/~shaunm/mallard"
+start = (mal_guide | mal_topic)
+
+
+
diff --git a/sandbox/mallard/xslt/mal-link.xsl b/sandbox/mallard/xslt/mal-link.xsl
index 03e7c3c..c5c563f 100644
--- a/sandbox/mallard/xslt/mal-link.xsl
+++ b/sandbox/mallard/xslt/mal-link.xsl
@@ -17,6 +17,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-->
+
+
diff --git a/sandbox/mallard/xslt/mal2cache.xsl b/sandbox/mallard/xslt/mal2cache.xsl
index de156c4..81cb0ce 100644
--- a/sandbox/mallard/xslt/mal2cache.xsl
+++ b/sandbox/mallard/xslt/mal2cache.xsl
@@ -42,6 +42,12 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+
+
+
+
+
+
@@ -55,6 +61,12 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+
+
+
+
+
+
@@ -66,6 +78,13 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+
+
+
+
+
+
+
@@ -73,8 +92,38 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sandbox/mallard/xslt/mal2html-block.xsl b/sandbox/mallard/xslt/mal2html-block.xsl
index ac145bd..e5b8be9 100644
--- a/sandbox/mallard/xslt/mal2html-block.xsl
+++ b/sandbox/mallard/xslt/mal2html-block.xsl
@@ -36,40 +36,93 @@ REMARK: Describe this template
-->
-h1 { color: #555753; font-size: 1.72em; margin: 0; }
-h2 { color: #555753; font-size: 1.44em; margin: 0; border-bottom: solid 1px #aaaaaa; }
-h3 { color: #555753; font-size: 1.2em; margin: 0; }
-h4 { color: #555753; font-size: 1em; margin: 0 0; }
-h5 { color: #555753; font-size: 1em; margin: 0 0; }
-h6 { color: #555753; font-size: 1em; margin: 0 0; }
-h7 { color: #555753; font-size: 1em; margin: 0 0; }
-div.title { color: #555753; font-weight: bold; }
+h1.title, h2.title, h3.title, h4.title, h5.title, h6.title, h7.title, div.title {
+ color:
+
+
+
+ ;
+ margin: 0;
+}
+h1.title, h2.title {
+ border-bottom: solid 1px
+
+
+
+ ;
+}
+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.title { font-weight: bold; }
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; }
pre.code {
+
background: url(mallard-icon-code.png) no-repeat top right;
- border: solid 2px #eeeeec;
+ border: solid 2px
+
+
+
+ ;
padding: 0.5em 1em 0.5em 1em;
}
div.comment {
margin-left: 1.72em;
padding: 0.5em 1em 0.5em 1em;
- border: solid 2px #f08d8d;
+ border: solid 2px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
}
-div.comment div.cite { margin-top: 0; font-style: italic; }
+div.comment div.cite { margin: 0; font-style: italic; }
div.figure {
- color: #2e3436;
- background-color: #eeeeec;
- border: solid 1px #888a85;
+ color:
+
+
+
+ ;
+ border: solid 1px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
margin-left: 1.72em;
padding: 4px;
}
div.figure-contents {
- color: #000000;
- background-color: #ffffff;
- border: solid 1px #888a85;
+ color:
+
+
+
+ ;
+ border: solid 1px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
padding: 0.5em 1em 0.5em 1em;
margin: 0;
text-align: center;
@@ -78,15 +131,18 @@ div.figure div.title { margin: 0 0 4px 0; }
div.figure div.caption { margin: 4px 0 0 0; }
div.synopsis {
- color: #2e3436;
-
- background-color: #eeeeec;
- border-top: solid 2px #729fcf;
- border-bottom: solid 2px #729fcf;
+ border-top: solid 2px;
+ border-bottom: solid 2px;
+ border-color:
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
padding: 0.5em 1em 0.5em 1em;
}
div.synopsis pre.code {
diff --git a/sandbox/mallard/xslt/mal2html-css.xsl b/sandbox/mallard/xslt/mal2html-css.xsl
index c2091ca..144774e 100644
--- a/sandbox/mallard/xslt/mal2html-css.xsl
+++ b/sandbox/mallard/xslt/mal2html-css.xsl
@@ -84,25 +84,13 @@ by extension stylesheets to extend or override the CSS.
+
-html { height: 100%; }
-body {
- margin: 0px;
- direction: ;
- background-color: #eeeeec;
- padding: 12px;
- min-height: 100%;
-}
-div.body {
- margin: 0;
- padding: 12px;
- border: solid 1px #babdb6;
- max-width: 60em;
- background-color: #ffffff;
-}
div, pre, p { margin: 1em 0 0 0; padding: 0; }
.first-child { margin-top: 0; }
+a { text-decoration: none; }
+a:hover { text-decoration: underline; }
diff --git a/sandbox/mallard/xslt/mal2html-list.xsl b/sandbox/mallard/xslt/mal2html-list.xsl
new file mode 100644
index 0000000..23207da
--- /dev/null
+++ b/sandbox/mallard/xslt/mal2html-list.xsl
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+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;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sandbox/mallard/xslt/mal2html-page.xsl b/sandbox/mallard/xslt/mal2html-page.xsl
new file mode 100644
index 0000000..c1b5b41
--- /dev/null
+++ b/sandbox/mallard/xslt/mal2html-page.xsl
@@ -0,0 +1,597 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
More About
+
+
+
+
+ only
+
+
+ first
+
+
+ last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ only
+
+
+ first
+
+
+ last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #
+
+
+
+
+
+
+
+
+
+ guidelink
+
+
+ guidelink-only
+
+
+ guidelink-first
+
+
+ guidelink-last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ only
+
+
+ first
+
+
+ last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ only
+
+
+ first
+
+
+ last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pagelink
+
+
+ pagelink-only
+
+
+ pagelink-first
+
+
+ pagelink-last
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+html { height: 100%; }
+body {
+ margin: 0px;
+ direction: ;
+ background-color:
+
+
+
+ ;
+ padding: 12px;
+ min-height: 100%;
+}
+
+
+div.version {
+ margin: 0 0 1em 0;
+ padding: 0.5em 1em 0.5em 1em;
+ max-width: 60em;
+ border: solid 1px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
+}
+div.version p.version {
+ margin-top: 0.2em;
+}
+div.body {
+ margin: 0;
+ padding: 1em;
+ max-width: 60em;
+ min-height: 20em;
+ border: solid 1px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
+}
+div.copyrights {
+ text-align: center;
+ color:
+
+
+
+ ;
+}
+div.pagelinks {
+ margin-left: 1em;
+}
+div.pagelink-first, div.pagelink-only {
+ margin-top: 0;
+}
+div.pagelink div.title {
+ font-size: 1em;
+}
+div.pagelink div.desc {
+ margin-top: 0.2em;
+ color:
+
+
+
+ ;
+}
+div.guidelinks {
+ float: right;
+ width: 10em;
+ margin-top: -1px;
+ padding: 0.5em 1em 0.5em 0.5em;
+ border: solid 1px
+
+
+
+ ;
+ background-color:
+
+
+
+ ;
+}
+div.guidelinks div.title {
+ font-size: 1em;
+}
+div.guidelink {
+ margin: 0;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Version Information
+
+ Version
+
+ on
+
+ (
+
+
+ Stub
+
+
+ Incomplete
+
+
+ Draft
+
+
+ Ready for review
+
+
+ Final
+
+
+ )
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ title
+
+
+
+
+
+
diff --git a/sandbox/mallard/xslt/mal2html-table.xsl b/sandbox/mallard/xslt/mal2html-table.xsl
new file mode 100644
index 0000000..3598f6e
--- /dev/null
+++ b/sandbox/mallard/xslt/mal2html-table.xsl
@@ -0,0 +1,407 @@
+
+
+
+
+
+
+
+
+
+
+
+table.table {
+ border-collapse: collapse;
+ border-color: #555753;
+ border-width: 1px;
+}
+td {
+ padding: 0.5em;
+ border-color: #888a85;
+ border-width: 1px;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ border-style: solid;
+
+
+
+
+
+ border-top-style: solid;
+
+
+ border-bottom-style: solid;
+
+
+ border-left-style: solid;
+
+
+ border-right-style: solid;
+
+
+
+
+
+
+
+
+
+
+ none
+
+
+ all
+
+
+ groups
+
+
+
+
+
+ all
+
+
+ groups
+
+
+
+
+
+
+
+
+
+ none
+
+
+ all
+
+
+ groups
+
+
+
+
+
+ all
+
+
+ groups
+
+
+
+
+
+
+
+
+
+ none
+
+
+ all
+
+
+ groups
+
+
+
+
+
+ all
+
+
+ groups
+
+
+
+
+
+
+
+
+
+ none
+
+
+ all
+
+
+ groups
+
+
+
+
+
+ all
+
+
+ groups
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ border-top-style: solid;
+
+
+
+ border-top-style: solid;
+
+
+
+
+
+
+
+
+ border-top-style: solid;
+
+
+
+ border-top-style: solid;
+
+
+
+
+
+
+
+
+ border-left-style: solid;
+
+
+
+
+
+ border-left-style: solid;
+
+
+
+
+
+
+ background-color: #d3d7cf;
+
+
+ background-color: #eeeeec;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sandbox/mallard/xslt/mal2html.xsl b/sandbox/mallard/xslt/mal2html.xsl
index 6636c10..bdfb4a6 100644
--- a/sandbox/mallard/xslt/mal2html.xsl
+++ b/sandbox/mallard/xslt/mal2html.xsl
@@ -34,8 +34,10 @@ REMARK: Describe this module
+
+
@@ -46,76 +48,7 @@ REMARK: Describe this module
(ancestor-or-self::mal:guide | ancestor-or-self::mal:topic)[last()]/@id,
'#', @id)"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Unmatched element:
diff --git a/sandbox/mallard/xslt/theme.xml b/sandbox/mallard/xslt/theme.xml
new file mode 100644
index 0000000..1ace77d
--- /dev/null
+++ b/sandbox/mallard/xslt/theme.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sandbox/mallard/xslt/theme.xsl b/sandbox/mallard/xslt/theme.xsl
new file mode 100644
index 0000000..53adf26
--- /dev/null
+++ b/sandbox/mallard/xslt/theme.xsl
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.1