Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
jlex
/
rdloci
/
Upload File :
New :
File
Dir
//home/cluster1/data/bu01/1121861/jlex/rdloci/allele_to_html.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:template match="rdlocus"> <xsl:variable name="name"><xsl:value-of select="concat('sequence_',position())"/></xsl:variable> <xsl:variable name="rc"><xsl:value-of select="concat('rc_',position())"/></xsl:variable> <xsl:variable name="translate"><xsl:value-of select="concat('translate_',position())"/></xsl:variable> <tr> <td> <INPUT TYPE="checkbox" value="on"> <xsl:attribute name="name"><xsl:value-of select="$rc"/></xsl:attribute> </INPUT> </td> <td> <TEXTAREA ROWS='2' COLS="110"><xsl:attribute name="name"> <xsl:value-of select="$name"/></xsl:attribute>><xsl:value-of select="strain"/>-L<xsl:value-of select="locus"/>-<xsl:value-of select="org"/>-<xsl:value-of select="allele"/>-<xsl:value-of select="vregion"/><xsl:text> </xsl:text> <xsl:value-of select="allele_sequence"/> </TEXTAREA> </td> </tr> </xsl:template> <xsl:template match="resultset"> <form action="../alignment/align.php" method="post"> <input type="hidden" name="num_results"> <xsl:attribute name="value"><xsl:value-of select="@num_results"/></xsl:attribute> </input> Output Filename: <input type="text" size="30" name="file_name"/><br/> Font Size: <input type="text" size="10" name="font_size" value="8px"/> <table border="1" width="100%"> <tr><th>RC</th><th>Sequence</th></tr> <xsl:apply-templates select="rdlocus"/> <tr> <td colspan="2" align="center"> <b>Translate Sequences: </b><input type="checkbox" name="translate" value="on"/> <b>Frame:</b> <select name="frame"> <option>1</option> <option>2</option> <option>3</option> </select> </td></tr> <tr><td colspan='2' align="center"><input type="submit"/></td></tr> </table> </form> </xsl:template> <xsl:template match="/"> <HTML> <HEAD> <TITLE>H. pylori RD Gene Database Search Results</TITLE> <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'></META> </HEAD> <BODY BGCOLOR='#FFFFFF' TEXT='#000000'> <xsl:apply-templates select="//resultset"/> </BODY> </HTML> </xsl:template> </xsl:stylesheet>