[求助]问一个xsl转化的数据处理问题?急!
xml.xml:<p>
<P><?xml version="1.0" encoding="gb2312"?><BR><?xml-stylesheet type="text/xsl" href="xml.xsl"?><BR><Paper TimeLimit="90" ExpiredTime="2006-12-12 12:00:00"><BR> <catalog cent="2" title="判断题"><BR> <question answer="T"><BR> <main>满意吗?</main><BR> </question><BR> <question answer="T"><BR> <main>对的吗?</main><BR> </question><BR> <question answer="T"><BR> <main>你满分吗?</main><BR> </question><BR> </catalog><BR></Paper></P>
<P>xml.xsl:</P>
<P><?xml version="1.0" encoding="UTF-8"?><BR><xsl:stylesheet version="1.0" xmlns:xsl="<a href='http://www.w3.org/1999/XSL/Transform" target="_blank" >' target=_blank><FONT color=#4455aa>http://www.w3.org/1999/XSL/Transform"></FONT></A><BR><xsl:output method="html" encoding="gb2312"/><BR><xsl:template match="Paper"><BR><html><BR> <table cellspacing="0" cellpadding="2" border="0" width="80%" align="center"><BR> <tr bgcolor="#dddddd"><BR> <td><b>判断</b></td><BR> </tr><BR> <tr><BR> <td><BR> <xsl:apply-templates select="catalog/question"/><BR> </td> <BR> </tr> <BR> </table><BR></html><BR></xsl:template><BR><xsl:template match="catalog/question"><BR> <xsl:<I>value</I>-of select="position()"/>.<BR> <xsl:<I>value</I>-of select="."/><br/><BR> <label><input type="radio" <I>value</I>="T" <I>onclick</I>="changeoption()"><xsl:attribute name="name">answer0<xsl:<I>value</I>-of select="position()"/></xsl:attribute></input> Yes </label> <BR> <label><input type="radio" <I>value</I>="F" <I>onclick</I>="changeoption()"><xsl:attribute name="name">answer0<xsl:<I>value</I>-of select="position()"/></xsl:attribute></input> No </label><BR> <br/><br/><BR></xsl:template><BR></xsl:stylesheet><BR><BR>我在jsp上用标签讲这xml和xsl文件引入,转化成html<BR>可是我需要处理xml里面的数据,xsl中我设置了radio来选择判断,xml中对应每个题目都有正确的答案,我需要在计算我做完这几道判断题后的成绩,显示在jsp页面中,请问怎么来计算成绩 ?另外,做题有个时间限制和试卷题目作废时间,这样在xsl上可以做相应处理吗?应该怎么做呢,谢谢高手指教,我搞java的,刚学点xml不是很懂,急用,谢谢谢谢!!在线等</P> 求助<BR>怎样在ie里套用一台服务器的监控视频、是实时的。
页:
[1]
