That looks like the last-resort fallback of the GeoTools Encoder: if all 
else fails, encode the string representation of the Java object.

How is your property defined in your schema? What is its type?

Is your schema valid? Does your schema conform the GML object/property 
rules for an application schema 
(TypeName/propertyName/TypeName2/propertyName2/...)?

 From p20-22 of OGC 07-036 (the GML 3.2.1 specification) see discussion 
in 7.1 and in particular:

******

7.1.3 XML Schema definition of GML language
The GML schema consists of W3C XML Schema components that define types 
and declare
- XML elements to encode GML objects with identity,
- XML elements to encode GML properties of those objects, and
- XML attributes qualifying those properties.
A GML object is an XML element of a type derived directly or indirectly 
from gml:AbstractGMLType. From this
derivation, a GML object shall have a gml:id attribute.
A GML property shall not be derived from gml:AbstractGMLType, shall not 
have a gml:id attribute, or any
other attribute of XML type ID.
An element is a GML property if and only if it is a child element of a 
GML object.
A GML object shall not appear as the immediate child of a GML object.
Consequently, no element may be both a GML object and a GML property.

******

Kind regards,
Ben.

On 30/08/12 01:34, jdoley wrote:
> In 2.2-RC2, I have a simple test application schema that just converts names,
> eg, using the topp:states shapefile, the inner "STATE_ABBR" becomes
> "StateAbbr" This all works fine (GetFeature, GetMap, and GetGeatureInfo)
> except when I reference a transformed name as the label property in an SLD
> TextSymbolizer:
>
>              <Label>
>                <ogc:PropertyName>xx:StateAbbr</ogc:PropertyName>
>              </Label>
>
> (and above this in the SLD, I have:   xmlns:ert="http://ert.org/test2"; which
> is the namespace of this test workspace) the label that gets
> displayed/rendered is something like:
>
> AttributeImpl:StateAbbr<string>=ND
>
> instead of "ND"
>
> I'm out of things to try. Any ideas anyone? Thanks.

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to