deegree/deegree3

Styles template for type 'SE' and XML config template 'text' is invalid

Opened this issue · 1 comments

When validating the template:

<?xml version="1.0" encoding="UTF-8"?>
<FeatureTypeStyle xmlns="http://www.opengis.net/se" xmlns:app="http://www.deegree.org/app" xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:sed="http://www.deegree.org/se" xmlns:deegreeogc="http://www.deegree.org/ogc" xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/se ./symbology-1.1.0.xsd">
  <!-- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/se https://schemas.deegree.org/core/3.5/se/symbology-1.1.0.xsd" -->

  <Name>CountyNames</Name>
  <!-- This rule shows the use of a Halo within a TextSymbolizer -->
  <Rule>
    <Name>CountyName</Name>
    <TextSymbolizer>
      <Label>
        <ogc:PropertyName>app:NAME</ogc:PropertyName>
      </Label>
      <Font>
        <SvgParameter name="font-family">Arial</SvgParameter>
        <SvgParameter name="font-family">Sans-Serif</SvgParameter>
        <SvgParameter name="font-weight">bold</SvgParameter>
        <SvgParameter name="font-size">15</SvgParameter>
      </Font>
      <Halo>
        <Radius>1</Radius>
        <Fill>
          <SvgParameter name="fill">#FFA3A3</SvgParameter>
          <SvgParameter name="fill-opacity">1</SvgParameter>
        </Fill>
      </Halo>
      <Fill>
        <SvgParameter name="fill-opacity">1.0</SvgParameter>
        <SvgParameter name="fill">#000000</SvgParameter>
      </Fill>
    </TextSymbolizer>
    <PointSymbolizer>
      <Graphic>
        <ExternalGraphic>
          <OnlineResource>
            <ogc:PropertyName>app:icon</ogc:PropertyName>
          </OnlineResource>
          <Format>image/png</Format>
        </ExternalGraphic>
        <Size>30</Size>
        <Displacement>
          <DisplacementX>0</DisplacementX>
          <DisplacementY>0</DisplacementY>
        </Displacement>
      </Graphic>
    </PointSymbolizer>
  </Rule>
</FeatureTypeStyle>

through the validator of the deegree console, it outputs:

Error near line 4, column 126: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 4, column 126: cvc-elt.1.a: Cannot find the declaration of element 'FeatureTypeStyle'.
Error near line 7, column 9: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 9, column 9: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 10, column 11: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 11, column 21: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 12, column 14: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 15, column 13: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 16, column 42: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 17, column 42: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 18, column 42: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 19, column 40: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 21, column 13: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 22, column 17: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 23, column 15: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 24, column 37: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 25, column 45: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 28, column 13: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 29, column 43: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 30, column 35: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 33, column 22: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 34, column 16: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 35, column 26: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 36, column 27: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 39, column 19: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 41, column 15: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 42, column 23: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 43, column 26: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Error near line 44, column 26: schema_reference.4: Failed to read schema document 'file:///usr/local/tomcat/webapps/symbology-1.1.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .

Changing xsi:schemaLocation="http://www.opengis.net/se ./symbology-1.1.0.xsd" to xsi:schemaLocation="http://www.opengis.net/se https://schemas.deegree.org/core/3.5/se/symbology-1.1.0.xsd" in the template text.xml results in the validator pointing out:

Error near line 37, column 28: cvc-complex-type.2.1: Element 'OnlineResource' must have no character or element information item [children], because the type's content type is empty.

image