posted 20 years ago
Personally, my answer to this question -
No, you can't create a style sheet automatically. A style sheet is written to convert a given input to an output that is known prior to writing the style sheet. If either the input or the output changes, the style sheet requires appropriate changes.
This is a very conservative answer, I agree but I get this question a lot and I have come across people who want 'some magic' to happen when the input is changed. Based on my experience and based on the (magical) expectations of various projects I have handled, I am constrained to answer this question in a conservative manner (in a hope that it will serve the cause of shutting the door on 'magic' in technical discussion).
I am not talking about tools that could potentially write style sheets, based on input/output. I don't know of any that do that.
Thanks.
- m