beautypg.com

Importing an xslt stylesheet, Restoring the xslt stylesheet, Changing variables in the xslt stylesheet – Google Search Appliance Creating the Search Experience User Manual

Page 103

background image

Google Search Appliance: Creating the Search Experience

Customizing the User Interface

103

The default name for the stylesheet is frontendname_frontend_stylesheet.en.xslt. You can give the
exported stylesheet any name you choose.

Importing an XSLT Stylesheet

If you develop an XSLT stylesheet outside the search appliance, or have a back-up version of the XSLT
stylesheet, you can import it to the Google Search Appliance.

To import an XSLT stylesheet:

1.

Open the XSLT Stylesheet Editor (see “Opening the XSLT Stylesheet Editor” on page 102).

2.

Enter the filename of the edited XSLT stylesheet in the Import stylesheet box, or browse for the
file.

3.

Click the Import button.

A confirmation message warns that this will overwrite your page layout settings.

4.

Click OK.

The edited XSLT stylesheet displays and is validated. Errors found during validation are displayed in
red.

5.

Fix errors in the file and repeat these Import steps.

6.

When finished, click Save XSLT Code.

Restoring the XSLT Stylesheet

You can discard any changes to an XSLT stylesheet and restore the XSLT stylesheet to the state before it
was edited.

To restore the XSLT stylesheet:

1.

Open the XSLT Stylesheet Editor (see “Opening the XSLT Stylesheet Editor” on page 102).

2.

Click Restore Default.

A confirmation message warns that this will overwrite your current stylesheet.

3.

Click OK. The XSLT stylesheet before it was edited is restored.

Changing Variables in the XSLT Stylesheet

For ease of use, the XSLT stylesheet is divided into the following sections:

Logo setup (see “Changing the Logo” on page 104)

Global style variables (see “Changing Global Style Variables” on page 104)

Result page components (see “Changing Result Page Components” on page 104)

Results elements (see “Changing Result Elements” on page 105)

Other variables (see “Changing Other Variables” on page 106)

Other stylesheet sections (see “Changing Variables in Other XSLT Stylesheet Sections” on page 106)