Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
jlex
/
strains
/
Upload File :
New :
File
Dir
//home/cluster1/data/bu01/1121861/jlex/strains/to_html.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:template match="gene"> <xsl:variable name="color"><xsl:value-of select="allele"/></xsl:variable> <img align="left"> <xsl:attribute name="src"><xsl:value-of select="concat('images/',$color,'.jpg')"/></xsl:attribute> </img> </xsl:template> <xsl:template match="locus"> <br/><br/> <b>Locus:</b> <xsl:apply-templates match="gene"/> <br/> <br/> </xsl:template> <xsl:template match="rdlocus1"> <tr><td><b>RD Locus1: </b></td> <td> <xsl:variable name="image"><xsl:value-of select="."/></xsl:variable> <img> <xsl:attribute name="src"><xsl:value-of select="concat('images/',$image,'.jpg')"/></xsl:attribute> </img> </td></tr> </xsl:template> <xsl:template match="rdlocus2"> <tr><td><b>RD Locus2: </b></td> <td> <xsl:variable name="image"><xsl:value-of select="."/></xsl:variable> <img> <xsl:attribute name="src"><xsl:value-of select="concat('images/',$image,'.jpg')"/></xsl:attribute> </img> </td></tr> </xsl:template> <xsl:template match="strain"> <br/> <hr/> <table> <tr><td><b>Strain:</b></td><td><xsl:value-of select="name"/></td></tr> <tr><td><b>Geographic Origin:</b></td><td><xsl:value-of select="geo_origin"/></td></tr> <tr><td><b><i>cagA</i>: </b></td><td><xsl:value-of select="caga"/></td></tr> <tr><td><b><i>vacA</i>: </b></td><td><xsl:value-of select="vaca"/></td></tr> <tr><td><b><i>iceA</i>: </b></td><td><xsl:value-of select="icea"/></td></tr> <tr><td><b>IS<i>605</i>: </b></td><td><xsl:value-of select="is605"/></td></tr> <xsl:apply-templates select="rdlocus1"/> <xsl:apply-templates select="rdlocus2"/> </table> <xsl:variable name='name'><xsl:value-of select="name"/></xsl:variable> <a target="_blank"> <xsl:attribute name="href"> <xsl:value-of select="concat('mysql_to_xml.php4?num_conditions=1&database=pcr_experiments&phrases_and_fields_0=strain&reg_exps_0=equals&string_0=',$name,'&stylesheet=pcr/to_html.xml')"/> </xsl:attribute> PCR Experiment Data </a> </xsl:template> <xsl:template match="RESULTSET"> <xsl:apply-templates select="strain"/> </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'> <h3>Number of Results: <xsl:value-of select="//RESULTSET/@num_results"/></h3> <xsl:apply-templates select="//RESULTSET"/> </BODY> </HTML> </xsl:template> </xsl:stylesheet>