Oracle8i Application Developer's Guide - XML Release 3 (8.1.7) Part Number A86030-01 |
Library | Service | Contents | Index

Customizing Discoverer 3i Viewer with XSL, 7 of 9

## Customizing Style by Modifying an XSL Stylesheet File: style.xsl

You need to be able to easily modify fonts and colors to fit in with your corporate standards, or to display the company logo to add branding. These global changes can be made in a single XSL stylesheet file "style.xsl" that defines special `tags' for each style that can be modified. For example:

- Inserting Logos: To insert a logo change the following line :

      <xsl:variable name="logo_src"> </xsl:variable name>

  to

      <xsl:variable name="logo_src"> http:www.mycompany.com/images/mylogo.gif
      </xsl:variable name>

- Changing the Text Color: To change the color of the text, change the following line and add the appropriate color code.

      <xsl:variable name="text_color">#000000</xsl:variable>

Many global style changes can be made in this way, but the overall operation of the User Interface remains unchanged. This is only one way of customizing Discoverer 3i Viewer. In fact, using XSL allows a complete customized application to be made, as the next example shows.

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index