Details
Description
When complex values are assigned to xs:anyType, they're not encoded.
This is needed for Observation and Measurement.
In om:ObservationType, result is of anyType (see http://schemas.opengis.net/om/1.0.0/observation.xsd).
If we assign features in it, nothing is encoded in it.
Explanation for my patch in FeatureTypeSchemaBuilder:
======================================================
Skip the part to find the binding for the type if it's an xs:anyType, because it wouldn't be found in findTypeName() since it's not in any profiles (and would throw exception). Alternatively, I could add it to GML3Profile, but I chose to skip it instead because it's faster this way.
In Geotools, I added support for this scenario in SubstitutionGroupXSAnyTypeBinding.
http://jira.codehaus.org/browse/GEOT-2916
Test case in app-schema will be committed when this is committed:
http://jira.codehaus.org/browse/GEOS-3751
Patch looks good Rini.