谁见过这种怪事????????(试试你才知道,竟然了)
peppi 2002-05-27 10:15:46 各位,我实在不知道该怎么说了,考下去您自己试试看是怎么回事,请帮我琢磨琢磨:
XML:
<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet type="text/xsl" href="ResultPage.xsl"?>
<panel>
<roll>
<名称>AAB001:</名称>
<text name="aab001">1111</text>
</roll>
<roll>
<名称>AAE:</名称>
<text name="aae">2222</text>
</roll>
</panel>
XSL:
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method = "html" encoding="Windows-1252" />
<xsl:template match="/">
<html><head><title>Result Page</title></head>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="panel">
<body>
<h1 align="center">社会保险系统</h1>
<hr/>
<form method="post" name="ResulPage">
<center>
<table>
<xsl:apply-templates/>
</table></center></form></body>
</xsl:template>
<xsl:template match="roll">
<tr>
<xsl:apply-templates/>
</tr>
</xsl:template>
<xsl:template match="名称">
<td>
<xsl:attribute name="align">
<xsl:value-of select="@align"/>
</xsl:attribute>
<xsl:value-of select="."/>
</td>
</xsl:template>
<xsl:template match="text">
<td><input>
<xsl:attribute name="maxlength">
10
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="text"/>
<xsl:apply-templates/>
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="type"/>
</xsl:attribute>
</input></td>
</xsl:template>
</xsl:stylesheet>
当双击打开XML的时候一切如我所愿,但是当我把文本框里显示出来的1111和2222删掉后再按刷新,1111和2222竟然一闪就没了??!!!!!怎么弄的啊?我的XSL里也有管刷新的东西吗?怎么一闪就给刷没了呢?问题何在???