Exploring the standard structure of a style
If you are going to create your styles with a graphical program hiding the complexity of your XML code, it is worthwhile to understand the basic syntax and structure of your documents. You may need to modify the styles after creation and the features you need to add may not be supported from the program, or simply you are on a server where the only way to edit is by using a text editor. Besides, you will write XML code in the examples in this chapter.
The first part of a style is always as in the following code fragment:
<?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
The first line is the XML declaration, and then we have the root element...