Layers should not be converted in groups. Groups and Layers are very different things.
Suggestion: add a new attribute applicable to ALL ELEMENTS to the Inkscape namespace, called "inkscape_layer".
Each element should have the attribute inkscape_layer set to the layer it belongs to, indipendently from the group hierarchy. This would allow creating groups with many layers (i.e. useful in multi-layered buttons... a button made of 4 layers must be a single group).
All the layers would be listed at the beginning of the SVG file, in a special section defined in the namespace called "InkscapeLayersList".
Layers should not be converted in groups. Groups and Layers are very different things.
Suggestion: add a new attribute applicable to ALL ELEMENTS to the Inkscape namespace, called "inkscape_layer".
Each element should have the attribute inkscape_layer set to the layer it belongs to, indipendently from the group hierarchy. This would allow creating groups with many layers (i.e. useful in multi-layered buttons... a button made of 4 layers must be a single group).
All the layers would be listed at the beginning of the SVG file, in a special section defined in the namespace called "InkscapeLayers List".