geoserver/geoserver — pull request #121 by aaime (2013-01-26 18:27:36+00:00)
Title: [GEOS-5556] count=0 - WFS GetFeature

I thought this one was going to be a piece of cake and found myself in XML hell soo... I could probably use a review for the patch itself.

When count=0 in WFS 2.0 GetFeature we get no collections to encode, no feature types, as a result FeatureTypeSchemaBuilder fails to build the output schema since it assumes, wrongly, that there will always be at least one feature type.
The fix I've made is to take into account that case, but still build enough schema to be able to encode a GML 3.2 collection, which means, adding the dependency to GML and setting the target namespace accordingly.