How they make it possible?
Do they use special software or techniques?
I don't know how everybody is doing it, but from my experience, they use both software that reads the PSD format and both a "correct" formatting of the PSD file (i.e. the right technique).
So basically that software expects a "valid" PSD and produces the required templates without further manual tweaking.
The whole idea is to enhance the PSD with metadata: - proper naming, proper cutting, proper properties (based on the conventions required by the specific software). After these are done manually, it's quite easy for a software to use that metadata and generate the required templates.
Is it really a possible to provide XHTML Strict, Semantically correct, Cross Browser compatible
Yes. The generation step of the software(that is using itself templates for generation), can output correct results.
even in IE6 and Opera, as some claims
No. It can include some known hacks but not 100 correct for IE.
W3C valid XHTML and CSS,
Yes. Remember - this is generated code, so it can respect to standards much easier since there's not manual intervention.
properly commented
Nope. It has only automatically generated comments - they are not very useful.
well optimized HTML and CSS Markup in 8 hours
As good as it can be automatically optimized.
It doesn't take 8 hours:
- if the PSD is produced by the same company that will generate those templates, than it will be already annotated with the required metadata.
- if the PSD is a well known stock PSD, than there might be already metadata at hand for it, so it's just a matter of quick copy and paste.
- if the PSD is a customer PSD, than there's a little more work (~30 min) for a skilled developer to add the required metadata to the layers.
- with the annotated PSD, it's just a matter of seconds to feed the software with it, and have the output.
- usually the software has a few parameters, so a few template variants are generated, than fed to a software to compare how it looks on various browsers. This step also takes a few minutes.
So all in one, for worst case scenarios it takes ~40 minutes per template, but usually it's much much faster. Companies take the 8 hour margin to be sure that they can deliver even under heavy load.