2010/10/4 Joaquín Rodriguez-Guerra Urcelay <[email protected]>: > Su archivo .SLD no se ajusta al esquema xml para SLD. > (SLD file is not compliant with the scheme) > Más ayuda dispobile aquí > > 1: <?xml version="1.0" encoding="ISO-8859-1"?> > 2: <StyledLayerDescriptor version="1.0.0" > 3: xmlns="http://www.opengis.net/sld" > 4: xmlns:ogc="http://www.opengis.net/ogc" > 5: xmlns:xlink="http://www.w3.org/1999/xlink" > 6: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > 7: xsi:schemaLocation="http://www.opengis.net/sld > 8: > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > 9: <NamedLayer> > 10: <Name>Default Polygon</Name> > 11: <UserStyle> > 12: <Title>Flags of USA</Title> > 13: <FeatureTypeStyle> > 14: <Rule> > 15: <Name>Solid black outline</Name> > 16: <LineSymbolizer> > 17: <Stroke/> > 18: </LineSymbolizer> > 19: </Rule> > 20: </FeatureTypeStyle> > 21: <FeatureTypeStyle> > 22: <Rule> > 23: <Name>Flags</Name> > 24: <Title>USA state flags</Title> > 25: <PointSymbolizer> > 26: <Graphic> > 27: <ExternalGraphic> > 28: <OnlineResource xlink:type="simple" > 29: > xlink:href="http://www.usautoparts.net/bmw/images/states/tn_${strToLowerCase(STATE_ABBR)}.jpg" > /> > ----------------------------------------------------------------------------------------------------------------------^ > cvc-datatype-valid.1.2.1: > 'http://www.usautoparts.net/bmw/images/states/tn_${strToLowerCase(STATE_ABBR)}.jpg' > is not a valid 'anyURI' value. > ----------------------------------------------------------------------------------------------------------------------^ > cvc-attribute.3: The value > 'http://www.usautoparts.net/bmw/images/states/tn_${strToLowerCase(STATE_ABBR)}.jpg' > of attribute 'xlink:href' on element 'OnlineResource' is not valid with > respect to its type. > 30: <Format>image/gif</Format> > 31: </ExternalGraphic> > 32: </Graphic> > 33: </PointSymbolizer> > 34: </Rule> > 35: </FeatureTypeStyle> > 36: </UserStyle> > 37: </NamedLayer> > 38: </StyledLayerDescriptor>
Forget about schema compliance and try it anyways. You can do so by disabling validation. These extensions do break the standard SLD schema so in general one cannot expect the xml to validate (from time to time we upgrade the internal schemas used for validation to hide these errors, but I guess in 1.7.2 the schemas were still not updated) Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
