I've finished a first version of a FeatureType to XML Schema transformer
(FeatureTypeTransformer) and used it for some time. It can be used with a
few simple changes in org.vfny.geoserver.responses.DescribeResponse (see
attached unified diff against revision 1.19).
Give me feedback if anything is missing or not working as it should. I'd be
glad to improve it further.
The class builds an xml schema from a FeatureType, so its limited by the
information available in FeatureType. I think it should really be possible
to create a xml schema that matches the actual data source schema as closely
as possible so that values that validate against the schema will also be
accepted by the data source (i.e. a database). At the moment, this is not
really the case.
Simon
(attachments)
DescribeResponse.diff (2.29 KB)
FeatureTypeTransformer.java (12.4 KB)