Echelon NodeBuilder Resource Report Generator User Manual

Page 50

Advertising
background image

XSLT transformation stylesheets and JavaScript code control the entire transformation
process. These files are all stored in the Templates folder on your local hard drive. The
default location for the Templates folder is c:\LonWorks\Types\Templates. You can also
access standard template files at the LonMark Web site
(http://types.lonmark.org/Templates).

Table 7.1 shows a list of available template files and a short description for each file.

Table 7.1 Template Files

File Description

index.xsl

XSLT stylesheet containing the index transformation templates

types.xsl

XSLT stylesheet containing the type transformation templates

rrg.xsl XSLT

stylesheet

containing

common variables and transformation templates that are used by both

the index transformation and the type transformation. Both index.xsl and types.xsl include rrg.xsl
automatically.

rrg.js

JavaScript source code that is included in all HTML pages: the report start index page, the sub index
HTML pages, and the type report pages.

A JavaScript function, Transform, controls the application of a given XSLT transformation (type
transformation, or index transformation) to a given report component (described by the relevant XML
data location and an XPath expression identifying a portion of that XML data) is included in this file.

The

Transform function uses an essential function (XSL transformation on single, selected nodes)

that is currently only available in Microsoft’s Internet Explorer version 6.0 or higher.

If you want to customize report presentations or add support for resource report viewing by other
browser platforms, please thoroughly review the information provided in the rrg.js file.

Art/

This folder contains artwork that is referred by the various HTML pages generated. The content of
the Art folder is specific to the default report presentation and transformations, and may not be
required for custom report presentations.

When hosting a set of custom templates on a Web server, you must configure the Web
server to host these files correctly. type/xml is a sufficient mime type for the XSLT
stylesheet, and type/text is a good choice for rrg.js.

48

NodeBuilder Resource Report Generator User’s Guide

Advertising