Hi everyone,
Just got through building my first public Drupal site. Very fun stuff. Anyway, I'm working on a project now where we'd like to have sections of the site that are completely re-styled in CSS but structurally identical in XHTML (sort of a minature version of the CSS Zen Garden, but less theoretical). Assumably, you could use taxonomy categorizations to make the styling determination, either by setting body class selectors, importing additional css files, or both.
The taxonomy_theme module could accomplish something similar, but there are two pitfalls I see in that approach:
1) Taxonomy_theme means for such a scenario, you have to maintain a lot more code than is really necessary if the only thing that needs to change is the css
2) Taxonomy_theme, by definition, cannot provide a mix-and-match approach, whereas you could combine multiple stylesheets however you wanted per-term, or even when creating a node.
Anyway, I was wondering if creating such a module would be a useful excercise. Part of me thinks you should just do it in the theme itself and be done, which doesn't provide a nice UI or the per-node options, but skips out on a lot of troubles that building such a module would entail (you'd need well-defined rules for preference, CSS load order, etc) and the added complexity for content creators -- I shudder to think about calls from the client saying "what does this 'inherit default styles from taxonomy term or select from available stylesheets below' box mean?"