This is more complex than that. Would require having support for complex feature types. The GML driver has also improved in ways where with playing with .gfs file the workaround solution can probably be applied.