0
<sld:StyledLayerDescriptor version='1.0.0' 
    xmlns:xi="http://www.w3.org/2001/XInclude" 
    xmlns:gml="http://www.opengis.net/gml" 
    xmlns:sld='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'
<sld:UserLayer>
<sld:LayerFeatureConstraints>
<sld:FeatureTypeConstraint />
</sld:LayerFeatureConstraints>
<sld:UserStyle>
<sld:Name>Japan</sld:Name>
<sld:Title>Japan layer</sld:Title>
<sld:FeatureTypeStyle>
<sld:Name>POINT</sld:Name>
<sld:Title>Point</sld:Title>
<sld:Abstract>FTS Abstract</sld:Abstract>
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
<xi:include href="street.xml" parse="xml" />
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>

I want this line <xi:include href="street.xml" parse="xml" /> to work correctly because currently it does not load street.xml file, it locates in the same directory as this file.

Maybe I've missed something.

street.xml

contains Rule and if I insert it directly, this rule works.

Programmer
  • 105
  • 2
  • 6
  • You haven't said how you are processing the file. Simply putting a file through an XML parser will usually not cause `xi:include` directives to be actioned. You have to request it explicitly. – Michael Kay Jan 25 '23 at 00:48

0 Answers0