This paper presents the system for automatic generation of IMS LD compliant E-Course from three components: machine readable explicit representation of instructional design, ontology of learning goals, and IMS Content Packaging compliant learning resources. For the explicit representation of instructional design, we have created a new domain-specific language named ELIDL which is aimed primarily at assistance to implementation of various pedagogical approaches in the course. Using ELIDL a teacher defines instructional design template which is one of the input parameters for the course generation. The system is verified by generating examples of the six different instructional designs for the Web Programming e-course via templates written in ELIDL.