Customization of XSL
The XSLs of a theme must be included within a def folder that is a child of the folder where the corresponding themedefinition.xml is located. Inside this def, the folder path must be created equal to that of the XSL that you wish to replace. Examples can be seen in the section Example of Theme Creation.
The development of XSLs using themes is similar to normal XSL customization. However, when used in a theme, the developer has a mechanism to import XSL from the base theme.
Base Theme
Given a stack of applied themes, the base theme for a given theme is always the stack of themes preceding it (if any) along with the general base (which would be the portal without themes).
For example, suppose the following stack of themes:
- theme soccer
- theme sports
- general base (portal without themes)
In this case, the base theme of the theme sports is the portal without themes. The base theme of the theme soccer is the result of the theme sports along with the portal without theme. If there was a theme national above the theme soccer, its base theme would be the result of the theme soccer along with the theme sports and the portal without theme.
Both import and include tags in an XSL can contain a prefix "lum_basetheme/" before the name of the file to be imported to indicate that the file to be used is from the base theme and not the current theme.
In the imports and includes of XSL, the path of the referenced file must be relative to the current file. That is, if the file being processed is my/path/MyStyle.xsl, the imports and includes will be relative to my/path.