I agree. I think the whole mail discussion is mislead. We don't need a mechanism in Wicket to easily read filenames and identify the constituent parts. Wicket simply links them.
This is from Component.getStyle()
if (style != null && !"".equals(style))
style = variation + "_" + style;
style = variation;
If users define a rule that variations always have to start with a "_" whereas style must not, than there will be no filename clash.
But in order for that to work StyleAndVariationResourceNameIterator must be fixed to do what Ned in his very first post requested: consider variation for the iteration as well, which we currently don't do.