Mercurial > dive4elements > river
diff artifacts/doc/conf/themes.xml @ 6103:4bbf2ef9bdd8
Themes: Reunited the small parts of default and second theme to default.xml and second.xml again to have valid XML.
This is a bit of a pity because the small parts had a better understandable structure.
To generate the overview use:
$ xsltproc \
contrib/themes2html.xsl \
doc/conf/themes.xml \
> themes.xhtml
To make this work you have to create a symlink in conf to itself:
$ (cd doc/conf && ln -s . conf)
TODO: We have to introduce a EntityResolver in the server code to
make the inclusion independent of the current working dir of the server.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 25 May 2013 20:55:11 +0200 |
parents | 621c76fe6b6e |
children | 2a4ff87ef357 |
line wrap: on
line diff
--- a/artifacts/doc/conf/themes.xml Sat May 25 19:40:09 2013 +0200 +++ b/artifacts/doc/conf/themes.xml Sat May 25 20:55:11 2013 +0200 @@ -1,55 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE themes [ <!ENTITY virtual-themes SYSTEM "conf/themes/virtual.xml"> - <!ENTITY general SYSTEM "conf/themes/default/general.xml"> - <!ENTITY longitudinal-section SYSTEM "conf/themes/default/longitudinal-section.xml"> - <!ENTITY cross-section SYSTEM "conf/themes/default/cross-section.xml"> - <!ENTITY discharge SYSTEM "conf/themes/default/discharge.xml"> - <!ENTITY duration SYSTEM "conf/themes/default/duration.xml"> - <!ENTITY fixings SYSTEM "conf/themes/default/fixings.xml"> - <!ENTITY floodmap SYSTEM "conf/themes/default/floodmap.xml"> - <!ENTITY historical-discharge SYSTEM "conf/themes/default/historical-discharge.xml"> - <!ENTITY reference SYSTEM "conf/themes/default/reference.xml"> - <!ENTITY sq-relation SYSTEM "conf/themes/default/sq-relation.xml"> - - <!ENTITY general_sec SYSTEM "conf/themes/second/general.xml"> - <!ENTITY longitudinal-section_sec SYSTEM "conf/themes/second/longitudinal-section.xml"> - <!ENTITY cross-section_sec SYSTEM "conf/themes/second/cross-section.xml"> - <!ENTITY discharge_sec SYSTEM "conf/themes/second/discharge.xml"> - <!ENTITY duration_sec SYSTEM "conf/themes/second/duration.xml"> - <!ENTITY fixings_sec SYSTEM "conf/themes/second/fixings.xml"> - <!ENTITY floodmap_sec SYSTEM "conf/themes/second/floodmap.xml"> - <!ENTITY historical-discharge_sec SYSTEM "conf/themes/second/historical-discharge.xml"> - <!ENTITY reference_sec SYSTEM "conf/themes/second/reference.xml"> - <!ENTITY sq-relation_sec SYSTEM "conf/themes/second/sq-relation.xml"> + <!ENTITY default-themes SYSTEM "conf/themes/default.xml"> + <!ENTITY second-themes SYSTEM "conf/themes/second.xml"> ]> <themes> &virtual-themes; - - <themegroup name="default"> - &longitudinal-section; - &cross-section; - &discharge; - &duration; - &fixings; - &floodmap; - &historical-discharge; - &reference; - &sq-relation; - &general; - </themegroup> - <themegroup name="second"> - &longitudinal-section_sec; - &cross-section_sec; - &discharge_sec; - &duration_sec; - &fixings_sec; - &floodmap_sec; - &historical-discharge_sec; - &reference_sec; - &sq-relation_sec; - &general_sec; - </themegroup> + &default-themes; + &second-themes; <!-- Mappings are following now. A mapping maps between a name of a facet and a theme. Always the first matching mapping is taken, so consider putting