XSL Devkit files can pass blade a number of instructions in their html/head/meta section. Some directives, such as specifying the blade root directory, can be used with any main stylesheet. Others, such as the actor directive, can only be used with page*.xsl. This document provides a list of those directives.
<actor id="actor_name"/>
Tells page.xsl what actor (user) to use when creating the page header. The actor's name and role are displayed at the top of the page, and customized headers and sidebars are loaded for that actor.
<bc name="page-name"/>
Causes a breadcrumb to be displayed on the page. The name attribute corresponds to a name in the app/breadcrumbs.xml file.
<blade root="blade_root_directory"/>
Tells BLADE where the root BLADE directory is. This is necessary so that references to theme and component CSS and JS files point to the proper location. If the file is located in the BLADE root directory, this directive can be omitted, or specified as "./".
<format type="format_type" {id="id" | value="value"}/>
Provides formatting information to page.xsl. Type specifies what type of formatting information is being provided, and either the id or value provides the information. Possible formatting types are:
<import-component pkg="component-set"/>
Imports the comonent set specified by the pkg attribute. Note that this only imports the component's JS routines. The main XSL file also needs to be statically linked to the component set's XSL file.
<import-theme pkg="themepack"/>
Imports the theme specified by the pkg attribute.
<keyd key="key number" func="function reference"/>
Registers a function to be called when a particular key is pressed. Note that the func attribute should be a
function reference, direct javascript code. For example, function() { alert('hi'); }
is valid, but
alert('hi');
will trigger an alert when the page is loaded and attempt to call the return value of
the alert function whenever a key is pressed.