Back to Home | Help Center | Log Out
 Help Center
 

Help Center

Home

Crawl and Index

Serving
  Front Ends
    Output Format
    KeyMatch
    Related Queries
    Filters
    Remove URLs
    OneBox Modules
  OneBox Modules
  Result Biasing

Status and Reports

Administration

More Information

Serving > Front Ends > Output Format - XSLT Stylesheet Editor

After you finish making and saving changes in the Page Layout Helper, you can, if you wish, make further changes in the XSLT Stylesheet Editor. You must make all Page Layout changes in the boxes provided before editing the Stylesheet directly. These changes are saved in the Stylesheet when you click Save Page Layout Code.

You cannot go back to the Page Layout Helper after you manually edit the Stylesheet, unless you start over completely by clicking the Restore Default button.

You can export the Stylesheet to work on in another location, then import it when you are satisfied with the changes. You can then preview the changes you've made.

All styles must be defined inside the style sheet. You cannot include external XML or XSLT code into the search appliance stylesheet.

Making Changes in the XSLT Stylesheet Editor

Here are the sections of the Stylesheet that you can work in to make changes. Click the links for more details on each one.

To view or edit the XSLT stylesheet:

  1. Under Serving > Front Ends, click the Edit link for a front end.
  2. Scroll down to see the XSLT Stylesheet Editor.
  3. Click the Edit Underlying XSLT Code link.
  4. Enter any changes to the stylesheet and click the Preview button to review the changes.
  5. When finished previewing your changes, close the preview window.
  6. Correct errors or make more changes.
  7. When finished, click the Save XSLT Code button.

To export the XSLT stylesheet:

  1. On the Output Format page, scroll down to see the XSLT Stylesheet Editor.
  2. Click the Edit Underlying XSLT Code link.
  3. Click the Export button.
  4. In the File Download wizard, click OK. Then navigate to a location for the file.

To import an edited XSLT stylesheet:

  1. On the Output Format page, scroll down to see the XSLT Stylesheet Editor.
  2. Click the Edit Underlying XSLT Code link.
  3. Enter the filename of the edited Stylesheet in the Import Stylesheet box, or browse for the file. Click the Import button. A confirmation message warns that this will overwrite your page layout settings.
  4. Click OK. The edited 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 the Save XSLT Code button.

To restore the default XSLT stylesheet:

  1. On the Output Format page, scroll down to see the XSLT Stylesheet Editor.
  2. Click the Edit Underlying XSLT Code link.
  3. Click the Restore Default button. A confirmation message warns that this will overwrite your page layout settings.
  4. Click OK. The original Stylesheet is restored.

The Search Protocol Reference section on HTML via XSLT provides more information.


 

 
© Google Inc. 2008