<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="modules">
        <html>
            <head>
                <title>All modules - ECP 2007-2008</title> 
                <link href="../css/ecp20072008.css" rel="stylesheet"/>

            </head>
            <body>
                
                <div id="borders">
                    <div class="header">
                        MA Electronic Communication and Publishing
                    </div>
                    
                    
                    <div class="menu">
                        <a>
                            <xsl:attribute name="href">
                                ../index.html
                            </xsl:attribute>
                            Home
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-compulsory-optional-modules.xml
                            </xsl:attribute>
                            Compulsory and optional modules                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-compulsory-modules.xml
                            </xsl:attribute>
                            Compulsory modules                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-optional-modules.xml
                            </xsl:attribute>
                            Optional modules                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-lecturers.xml
                            </xsl:attribute>
                            Lecturers                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-additional-info.xml
                            </xsl:attribute>
                            Additional info                       
                        </a>
                    </div>
                    
                    
                    <div class="center"><br/>
                        <h5>All modules grouped by compulsory and optional.</h5><br/>
                        
                        <h3>Compulsory modules - Description</h3>
                        
                        <xsl:for-each select="module[@comopt='compulsory']">
                            
                            <xsl:sort select="name" order="ascending"/>
                            
                            <div class="cell">
                                <span class="texttitle">
                                    <br/><xsl:value-of select="name"/>
                                </span>
                                <br/><br/>
                                
                                <span class="textdescription">
                                    <xsl:value-of select="desc"/>
                                </span>
                                <br/><br/>
                                
                                
                                <xsl:choose>
                                    <xsl:when test="(not (link))">
                                        
                                        <xsl:value-of select="taught.by"/>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <a>
                                            <xsl:attribute name="href">
                                                <xsl:value-of select="link"/>
                                            </xsl:attribute>
                                            <xsl:value-of select="taught.by"/>
                                        </a>
                                    </xsl:otherwise>
                                </xsl:choose> 
                                <br/><br/>
                            </div>
                        </xsl:for-each>
                        
                    </div>          
                    
                <br/><br/>
                    
                    <div class="center">
                        
                        <h3>Optional modules - Description</h3>
                        <xsl:for-each select="module[@comopt='optional']">
                            
                            <xsl:sort select="name" order="ascending"/>
                            
                            
                            <div class="cell">
                                <span class="texttitle">
                                    <br/><xsl:value-of select="name"/>
                                </span>
                                <br/><br/>
                                
                                <span class="textdescription">
                                    <xsl:value-of select="desc"/>
                                </span>
                                <br/><br/>
                                
                                
                                <xsl:choose>
                                    <xsl:when test="(not (link))">
                                        
                                        <xsl:value-of select="taught.by"/>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <a>
                                            <xsl:attribute name="href">
                                                <xsl:value-of select="link"/>
                                            </xsl:attribute>
                                            <xsl:value-of select="taught.by"/>
                                        </a>
                                    </xsl:otherwise>
                                </xsl:choose> 
                                <br/><br/>
                            </div>
                        </xsl:for-each>
                        
                    </div>          
                    
                    <div class="menu">
                        <a>
                            <xsl:attribute name="href">
                                ../xml/xml-original.xml
                            </xsl:attribute>
                            XML
                        </a>|
                        
                        <a>
                            <xsl:attribute name="href">
                                ../schema/schema.xsd
                            </xsl:attribute>
                            Schema                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../css/ecp20072008.css
                            </xsl:attribute>
                            CSS                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../tree-structure/tree.jpeg
                            </xsl:attribute>
                            Tree structure                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xsl/xsl-compulsory-optional-modules.xsl
                            </xsl:attribute>
                            XSL 1                     
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xsl/xsl-compulsory-modules.xsl
                            </xsl:attribute>
                            XSL 2
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xsl/xsl-optional-modules.xsl
                            </xsl:attribute>
                            XSL 3                      
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xsl/xsl-lecturers.xsl
                            </xsl:attribute>
                            XSL 4                       
                        </a>|
                        <a>
                            <xsl:attribute name="href">
                                ../xsl/xsl-additional-info.xsl
                            </xsl:attribute>
                            XSL 5                       
                        </a>
                        <br/><br/>
                        <span class="textdescription">Web page created by <a href="http://www.marcodecesaris.com">Marco De Cesaris</a> on 21st April 2008, | <a href="http://www.slais.ucl.ac.uk">School of Library, Archive and Information Studies </a> | <a href="http://www.ucl.ac.uk">UCL </a>
                        </span>
                        <br/><br/>
                    </div>
                </div>
                
                
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

