Defining Named Styles

To define a named style:

  1. Add the relevant named style elements, and the desired content for each element, into an XML file.
    Note: The root element of the XML file must be <NamedStyle version="MXP_WorkSpace_1_5" xmlns="">.
  2. Add the file into a JCR repository that is accessible to the Repository Service.

An example of a typical named style file is shown here:

<?xml version="1.0" encoding="UTF-8"?>
        width-unit="mapinfo:imagesize pixel">
        <Pen>mapinfo:pen 9</Pen>

After you have added the named style file to the repository, you can reference the named style in your XML request by specifying the path and filename of the XML file.