You are here: Web API Functions > getstyle

getstyle

The getstyle command gets an XSL style sheet hosted by the Express Server

Syntax

The getstyle command may be invoked in the following way to return a specified style sheet:

getstyle?style=<style-name>

Parameters

The following parameters may be used with the getstyle command:

style

The stylesheet name. If the value of this parameter ends in ".xsl", then this parameter is interpreted as a path to a stylesheet stored on Express Server (relative to the <Express Server installation directory>/ImageServer/docs/styles directory). If the stylesheet exists, then Express Server returns it in its response. If the value does not end in ".xsl", then this parameter is interpreted as a path to a folder in the styles directory. The Express Server looks in the folder for a stylesheet called "default.xsl" and returns this document in its response.

Examples

The following examples are "live" in that they contain real URLs that will access an Express Server. Change the hostname to your host to see your own server's responses to these queries.

The following gets the stylesheet simple/default.xsl:

http://demo.lizardtech.com/lizardtech/iserv/getstyle?style=simple

The following gets the stylesheet simple/view.xsl:

http://demo.lizardtech.com/lizardtech/iserv/getstyle?style=simple/view.xsl