Software used for managing this site
Appache Forrest
This site is designed and maintained with Appache Forrest with, of course, a lot of twist of my own.
Style Modifications
Dropdown menu of TOC
In order to create a dropdown list of Table of content, I have to modify:
- File: skins/musc/xslt/html/site2xhtml.xsl
- I added an arbitrary <ul> outside the presumed table of contents. Using one element for dropdown list allows me to control the layout easily. In addition, a javascript must be included to make it work in IE.
- Code string:
- XW@dropdown
Hide Table of Content
For short articles, it is redundent to have a TOC. What I have modified is at two places.
- File: skins/common/xslt/html/document2html.xsl
- I added a conditionn to check the "class" attributes of "section". (search for code XW@TOC in the file). If the value of the class attribute is equal to "hideTOC', then template 'section' of mode 'toc' will not be applied. This will result to zero <tocitem> in the generated intermediate files, then,
- File: skins/musc/xslt/html/site2xhtml.xsl
- check if <tocitem> is larger than 0, if so, TOC is displayed as normal.
- Code string:
- XW@TOC
Image map for group logo
Unfortunately, forrest's skinconf.xml doesn't allow the addition of arbitrary element, so I have to change two files.
- File: skins/musc/xslt/html/site2xhtml.xsl
- Here I have to added a parameter called "usemap" under the projectlogo template. Without this, there will be two maps since the eventual rendering calls the renderlogo.xsl.
- File: skins/common/xslt/html/renderlog.xsl
- Here, an attributes "usemap" is added to the img tag. In addition, a map is added. Both are conditioned upon that "usemap" is not empty.
- Code string:
- XW@imgmap

