Why not using an intuitive language to explain to other language what to do ?  This is the basic idea for the "Zen Coding" tool !

Zen

Just write some simple hieroglyph like line bellow, and execute the "zen coding transformation":

#page>div.logo+ul#navigation>li*5>a

The you will get :

<div id="page">
        
        <ul id="navigation">
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
        </ul>
</div>

Cool tool, no ?

have a try in your favorite code editor !

you can also discover Zen Coding power through the following video:

Zen Coding v0.5 from Sergey Chikuyonok on Vimeo.