    xmlns="http://www.w3.org/2000/svg" version="1.1"
     xmlns:xlink="http://www.w3.org/1999/xlink">

    <!-- animated rectangles -->
    <rect x="10" y="35" height="15" width="0">
        <animate attributeType="XML" attributeName="width" to="50"
                 id="first"
                 begin="
                 0s;

                 third.end

                "
                end="
                 0s;

                 third.end

                "
                dur="4s" />
    </rect>

    <rect 