[mapserver-commits] r8563 - trunk/docs/ogc

svn at osgeo.org svn at osgeo.org
Tue Feb 17 07:24:33 EST 2009


Author: tomkralidis
Date: 2009-02-17 07:24:33 -0500 (Tue, 17 Feb 2009)
New Revision: 8563

Modified:
   trunk/docs/ogc/sld.txt
Log:
make inline examples valid SLD 1.1.0


Modified: trunk/docs/ogc/sld.txt
===================================================================
--- trunk/docs/ogc/sld.txt	2009-02-17 04:05:14 UTC (rev 8562)
+++ trunk/docs/ogc/sld.txt	2009-02-17 12:24:33 UTC (rev 8563)
@@ -75,21 +75,28 @@
 
 .. code-block:: guess
 
-        <StyledLayerDescriptor version="1.0.0">
+        <?xml version="1.0" encoding="UTF-8"?>
+        <StyledLayerDescriptor version="1.0.0"
+          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"
+          xsi:schemaLocation="http://www.opengis.net/sld
+          http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
           <NamedLayer>
             <Name>WorldGen_Outline</Name>
             <UserStyle>
               <Title>xxx</Title>
               <FeatureTypeStyle>
                 <Rule>
-                <LineSymbolizer>
-                 <Geometry>
-                   <PropertyName>center-line</PropertyName>
-                 </Geometry>
-                 <Stroke>
-                   <CssParameter name="stroke">#0000ff</CssParameter>
-                 </Stroke>
-                </LineSymbolizer>
+                  <LineSymbolizer>
+                    <Geometry>
+                      <ogc:PropertyName>center-line</ogc:PropertyName>
+                    </Geometry>
+                    <Stroke>
+                      <CssParameter name="stroke">#0000ff</CssParameter>
+                    </Stroke>
+                  </LineSymbolizer>
                 </Rule>
               </FeatureTypeStyle>
             </UserStyle>
@@ -97,30 +104,38 @@
         </StyledLayerDescriptor> 
 
 
-Veersion 1.1.0 of the same SLD
+Version 1.1.0 of the same SLD
 
 .. code-block:: guess
 
-   <StyledLayerDescriptor version="1.1.0">
-          <NamedLayer>
-            <Name>WorldGen_Outline</Name>
+        <?xml version="1.0" encoding="UTF-8"?>
+        <StyledLayerDescriptor version="1.1.0"
+          xmlns="http://www.opengis.net/sld"
+          xmlns:se="http://www.opengis.net/se"
+          xmlns:ogc="http://www.opengis.net/ogc"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://www.opengis.net/sld
+          http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
+        <NamedLayer>
+          <se:Name>WorldGen_Outline</se:Name>
             <UserStyle>
-              <Name>xxx</Name>
-              <FeatureTypeStyle>
-                <Rule>
-                <LineSymbolizer>
-                 <Geometry>
-                   <PropertyName>center-line</PropertyName>
-                 </Geometry>
-                 <Stroke>
-                   <SvgParameter name="stroke">#0000ff</SvgParameter>
-                 </Stroke>
-                </LineSymbolizer>
-                </Rule>
-              </FeatureTypeStyle>
+              <se:Name>xxx</se:Name>
+              <se:FeatureTypeStyle>
+                <se:Rule>
+                  <se:LineSymbolizer>
+                    <se:Geometry>
+                      <ogc:PropertyName>center-line</ogc:PropertyName>
+                    </se:Geometry>
+                    <se:Stroke>
+                      <se:SvgParameter name="stroke">#0000ff</se:SvgParameter>
+                    </se:Stroke>
+                  </se:LineSymbolizer>
+                </se:Rule>
+              </se:FeatureTypeStyle>
             </UserStyle>
           </NamedLayer>
-        </StyledLayerDescriptor> 
+        </StyledLayerDescriptor>
         
 When MapServer gets a valid SLD through a request, it parses this SLD to extract 
 all the styles attached to the NamedLayers, and then it applies these styles to 



More information about the mapserver-commits mailing list