谁见过这种怪事????????(试试你才知道,竟然了)

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里也有管刷新的东西吗?怎么一闪就给刷没了呢?问题何在???
...全文
21 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
peppi 2002-05-27
  • 打赏
  • 举报
回复
那能改进吗?
saucer 2002-05-27
  • 打赏
  • 举报
回复
浏览器缓存问题,别按刷新,按地址框右边的GO按钮

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧