<?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>Additional info</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/>
                        
                        <h3>Assessment, Learning outcomes, Further info</h3><br/>
                
                <xsl:for-each select="module">
                    <xsl:sort select="@comopt" order="ascending"/>
                    <xsl:sort select="name" order="ascending"/>



                    

                    <div class="cell">
                        <br/>
                        <span class="texttitle">
                            <xsl:value-of select="name"/></span>
                        <xsl:text> - </xsl:text>              
                                <xsl:value-of select="id"/>
                        <xsl:text> - </xsl:text>
                        <span class="comopt"><xsl:value-of select="@comopt"/></span>
                        <br/><br/>

                            
                            
                            
                            <xsl:choose>
                                <xsl:when test="(not (learning.outcomes))">
                                    <span class="texttitle">Learning outcomes: </span>
                                    <span class="textdescription">Info not available</span>
                                </xsl:when>
                                <xsl:otherwise>
                                    <span class="texttitle">Learning outcomes: </span>
                                    <span class="textdescription">
                                        <xsl:value-of select="learning.outcomes"/>
                                    </span>
                                </xsl:otherwise>
                            </xsl:choose>    
                        <br/><br/>
                        
                            
                            
                                <xsl:choose>
                                    <xsl:when test="(not (prerequisites))">
                                        <span class="texttitle">Prerequisites: </span>
                                        <span class="textdescription">There are no prerequisites for this module</span>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <span class="texttitle">Prerequisites: </span>
                                        <span class="textdescription"><xsl:value-of select="prerequisites"/></span>
                                    </xsl:otherwise>
                                </xsl:choose>                                         
                                <br/>
                                <br/>
                                

                    
                                            
                                <xsl:choose>
                                    <xsl:when test="(not (assessment))">
                                        <span class="texttitle">Assessments: </span>
                                        <span class="textdescription">Info not available</span>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <span class="texttitle">Assessments: </span>
                                        <span class="textdescription"><xsl:value-of select="assessment"/></span>
                                    </xsl:otherwise>
                                </xsl:choose>                                        
                                <br/>                                            
                                <br/>                            
                         
                    
                            

                                <xsl:choose>
                                    <xsl:when test="(not (further.info))">
                                        <span class="texttitle">Further info: </span>
                                        <span class="textdescription">No further info available</span>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <span class="texttitle">Further info: </span>
                                        <a>
                                            <xsl:attribute name="href">
                                                <xsl:value-of select="further.info"/>
                                            </xsl:attribute>
                                            <xsl:text>Click here for further info about  </xsl:text>
                                            <xsl:value-of select="name"/>
                                        </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>

