Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msa="http://www.publictalksoftware.co.uk/msa">
- <xsl:output method="html" indent="yes" version="4.01"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- doctype-public="//W3C//DTD XHTML 1.0 Transitional//EN"/>
- <xsl:variable name="PubDB" select="document('MSA_PublisherDatabase.XML')"/>
- <xsl:variable name="HistoryDB" select="document('AssignHistory.XML')"/>
- <xsl:template match="/">
- <html>
- <head>
- <title>Students - Full History Report</title>
- <link rel="stylesheet" type="text/css" href="Custom--Full Student History.css"/>
- </head>
- <body>
- <table class="HistoryTable">
- <xsl:apply-templates select="$PubDB/msa:PublisherDatabase/msa:Publishers/msa:Publisher">
- <xsl:sort select="msa:Name" data-type="text" order="ascending"/>
- </xsl:apply-templates>
- </table>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="msa:Publisher">
- <tr>
- <td colspan="5" class="CellName CellBorder">
- <xsl:value-of select="msa:Name"/>
- </td>
- </tr>
- <xsl:apply-templates select="$HistoryDB/AssignmentHistory/*/StudentItems/Item[Name=current()/msa:Name and Type != 'Assistant']"/>
- <tr>
- <td colspan="5" class="CellGap">
- <xsl:text> </xsl:text>
- </td>
- </tr>
- </xsl:template>
- <xsl:template match="Item">
- <xsl:if test="position()=1">
- <tr>
- <td class="CellHeading CellBorder">
- <xsl:text>Date</xsl:text>
- </td>
- <td class="CellHeading CellBorder">
- <xsl:text>Item</xsl:text>
- </td>
- <td class="CellHeading CellBorder">
- <xsl:text>Study Point</xsl:text>
- </td>
- <td class="CellHeading CellBorder">
- <xsl:text>Next Study Point</xsl:text>
- </td>
- <td class="CellHeading CellBorder">
- <xsl:text>Completed</xsl:text>
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="CellNormal CellBorder">
- <xsl:value-of select="name(../..)"/>
- </td>
- <td class="CellNormal CellBorder">
- <xsl:value-of select="Type"/>
- </td>
- <td class="CellNormal CellBorder">
- <xsl:value-of select="Name/@Counsel"/>
- </td>
- <td class="CellNormal CellBorder">
- <xsl:value-of select="Name/@NextCounsel"/>
- </td>
- <td class="CellNormal CellBorder">
- <xsl:value-of select="Name/@Completed"/>
- </td>
- </tr>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement