Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
jlex
/
qbank
/
Upload File :
New :
File
Dir
/home/cluster1/data/bu01/1121861/html/jlex/qbank/question_list.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="q_set"> <xsl:variable name="answer">"<xsl:value-of select="answer"/>"</xsl:variable> <xsl:variable name="temp"><xsl:value-of select="$answer"/></xsl:variable> <tr> <td> <input type="button" value="Answer"> <xsl:attribute name="onclick"><xsl:value-of select="concat('get_answer(',$temp,')')"/> </xsl:attribute> </input> </td> <td><xsl:value-of select="question"/></td> </tr> </xsl:template> <xsl:template match="br"> bbb </xsl:template> <xsl:template match="/"> <html> <head> <style type="text/css"> .demo {color:#000033; background-color:#cccccc; layer-background-color:#cccccc; position:absolute; top:100px; left:100px; width:480px; height:280px; z-index:99; visibility:hidden;} .answer {font-size:120%; visibility:hidden} </style> <script type="text/javascript"> function get_answer(answer) { OpenWindow=window.open("", "newwin", "height=300, width=700,toolbar=no,scrollbars="+scroll+",menubar=no, screenx=300, screeny=300"); OpenWindow.focus(); OpenWindow.document.write("<BODY>") OpenWindow.document.write(answer) OpenWindow.document.write("</BODY>") OpenWindow.document.write("</HTML>") OpenWindow.document.close() self.name="main" } </script> </head> <body> <h2>QBank Questions</h2> <hr /> <table border='1'> <tr><td>Answer</td><td>Question</td></tr> <xsl:apply-templates select="/resultset/q_set"/> </table> <a href="../qbank/qbank_quiz.html">Start new quiz</a> </body> </html> </xsl:template> </xsl:stylesheet>