Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
jlex
/
alignment
/
Upload File :
New :
File
Dir
//home/cluster1/data/bu01/1121861/jlex/alignment/to_html.xml~
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:template match="lane"> <xsl:if test="strain!=''"> <tr> <td><xsl:value-of select="lane_number"/></td> <td> <xsl:variable name="strain"><xsl:value-of select="strain"/></xsl:variable> <a> <xsl:attribute name="href"> <xsl:value-of select="concat('mysql_to_xml.php4?num_conditions=1&database=strains&phrases_and_fields_0=name&reg_exps_0=equals&string_0=',$strain,'&stylesheet=strains/to_html.xml')"/> </xsl:attribute> <xsl:value-of select="strain"/> </a> </td> <td><xsl:value-of select="forward_primer"/></td> <td><xsl:value-of select="reverse_primer"/></td> <td nowrap="1"><xsl:value-of select="results"/></td> <td><xsl:value-of select="predictions"/></td> </tr> </xsl:if> </xsl:template> <xsl:template match="pcr_experiment"> <TABLE> <TR><TD> <b>Date: </b><xsl:value-of select="date"/><br/> <b>Purpose: </b><xsl:value-of select="purpose"/><br/> <b>Picture File Name:</b><xsl:value-of select="picture"/><br/> <b>Results:</b><br/> </TD></TR> <TR> <TD valign="top"> <table border="1" cellpadding="2"> <tr><th>Lane</th><th>Strain</th><th>F-Primer</th><th>R-Primer</th><th>Results</th><th>Predictions</th></tr> <xsl:apply-templates select="lane"/> </table> </TD> </TR> <TR><TD> <!-- textarea rows="1" cols="64" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 /textarea --> <pre> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20</pre> <xsl:variable name="gel"><xsl:value-of select="picture"/></xsl:variable> <img HEIGHT='200' WIDTH='525'> <xsl:attribute name="src"><xsl:value-of select="concat('gels/',$gel)"/></xsl:attribute> </img> <pre> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20</pre> </TD></TR> </TABLE> <TABLE width='800'> <xsl:if test="conclusions!=''"> <tr><th align='left'>Conclusions:</th></tr> <tr><td><xsl:value-of select='conclusions'/></td></tr> </xsl:if> <xsl:if test="plans!=''"> <tr><th align='left'>Plans:</th></tr> <tr><td><xsl:value-of select='plans'/></td></tr> </xsl:if> </TABLE> <br/><br/> <br/><br/> <br/><br/> <br/><br/> </xsl:template> <xsl:template match="RESULTSET"> <H2>Number of Results: <xsl:value-of select="@num_results"/></H2> <xsl:apply-templates select="pcr_experiment"/> </xsl:template> <xsl:template match="/"> <HTML> <HEAD> <TITLE>H. pylori Database Search Results</TITLE> <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'></META> </HEAD> <BODY BGCOLOR='#FFFFFF' TEXT='#000000'> <FONT size="1"> <xsl:apply-templates select="//RESULTSET"/> </FONT> </BODY> </HTML> </xsl:template> </xsl:stylesheet>