<?xml version="1.0" encoding="gb2312"?>
<test>中文</test>有中文的地方都可以放。
也可以这样:
<?xml version="1.0" encoding="utf-8"?>
<test>中文</test>
但这样文件格式必须保存为utf-8格式的。在w2k的记事本里有保存的选项。
另外xmlspy可以自动转换。
<test>中文</test>有中文的地方都可以放。
也可以这样:
<?xml version="1.0" encoding="utf-8"?>
<test>中文</test>
但这样文件格式必须保存为utf-8格式的。在w2k的记事本里有保存的选项。
另外xmlspy可以自动转换。
解决方案 »
- 想要改造系统,多用javascript实现酷的效果,请给推荐效果演示以及代码地址,我参考做。来者有分!感谢!
- 是否应该用javascript实现这个效果
- 跪求框架代码!!!!!!!
- 输入框字符的正则判断问题!
- 问下论坛的切换导航的那个按钮的js效果是怎么做的,
- 为什么localhost时出错,192.168.*.*时就可以通过?
- iframe在急速模式下显示出现问题
- 如何用javascript做一个投票程序
- 表单提交后,如何在返回该表单页面将刚才提交的数据重新载入该页面
- 使用FileOutputStream,将数据写入文件
- 怎样给<input type="file">的Value赋值???
- 各位大虾帮帮忙,怎么控制text,是disbled,还是readonly,怎么才能控制???
你能不能把做好的现在发过来啊,
我急用的,谢谢你啦,
就是利用MSDN LIBRARY 中的哪个目录树,
我只有四个
组卷,测试,查询,我的考试一级目录,
然后是
组卷和测试下边分别有7个子目录,就可以啦,
真的非常感谢你!
现在就给我发过来可以么?
================
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://lucky.myrice.com" version="1.0">
<msxsl:script language="VBScript" implements-prefix="user">
<![CDATA[
Function getName(node)
getName = node.Item(0).nodeName
End Function
]]>
</msxsl:script>
<xsl:template match="/">
<xsl:apply-templates select="/*"/>
</xsl:template>
<xsl:template match="/*">
<table width="100%" border="0" style="font-size:9pt">
<tr>
<td align="left"><b>µÚ <span id="CurrentPage"></span> Ò³ ×Ü <span id="PageCount"></span> Ò³    ¹²ÓР<span id="RecordCount"></span> Ìõ¼Ç¼</b></td>
<td align="right"><b>ÿҳ¼Ç¼Êý£º<input onblur="setRecordsPerPage()" id="RecordsPerPage" style="vertical-align:middle;height:15pt;width:30px"/></b></td>
<td align="right">
<span id="Paging">
<input type="button" OnClick="FirstPage()" value="µÚÒ»Ò³"/>
<input type="button" OnClick="previousPage(1)" value="ÉÏÒ»Ò³"/>
<input type="button" OnClick="nextPage(1)" value="ÏÂÒ»Ò³"/>
<input type="button" OnClick="LastPage()" value="×îÄ©Ò³"/>
</span>
</td>
</tr>
</table>
<Table WIDTH="100%" BORDER="0" cellpadding="0" cellspacing="1" style="font-size:11pt" bgcolor="#0099ff">
<tr bgcolor="#FF6600" style="cursor: hand;padding:5px">
<xsl:for-each select="./*[1]/*">
<td align="center">
<xsl:attribute name="onclick">
Sort('<xsl:value-of select="user:getName(.)"/>')
</xsl:attribute>
<font color="#EEEEEE"><b><u><xsl:value-of select="user:getName(.)"/></u></b></font>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="./*[position() < 6 and position() > 0]">
<xsl:sort select="./*[1]" order="ascending"/>
<tr bgcolor="#FFCCFF">
<xsl:for-each select="./*">
<td> <xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</Table>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://lucky.myrice.com" version="1.0">
<msxsl:script language="VBScript" implements-prefix="user">
<![CDATA[
Function getName(node)
getName = node.Item(0).nodeName
End Function
]]>
</msxsl:script>
<xsl:template match="/">
<xsl:apply-templates select="/*"/>
</xsl:template>
<xsl:template match="/*">
<table width="100%" border="0" style="font-size:9pt">
<tr>
<td align="left"><b>第 <span id="CurrentPage"></span> 页 总 <span id="PageCount"></span> 页    共有 <span id="RecordCount"></span> 条记录</b></td>
<td align="right"><b>每页记录数:<input onblur="setRecordsPerPage()" id="RecordsPerPage" style="vertical-align:middle;height:15pt;width:30px"/></b></td>
<td align="right">
<span id="Paging">
<input type="button" OnClick="FirstPage()" value="第一页"/>
<input type="button" OnClick="previousPage(1)" value="上一页"/>
<input type="button" OnClick="nextPage(1)" value="下一页"/>
<input type="button" OnClick="LastPage()" value="最末页"/>
</span>
</td>
</tr>
</table>
<Table WIDTH="100%" BORDER="0" cellpadding="0" cellspacing="1" style="font-size:11pt" bgcolor="#0099ff">
<tr bgcolor="#FF6600" style="cursor: hand;padding:5px">
<xsl:for-each select="./*[1]/*">
<td align="center">
<xsl:attribute name="onclick">
Sort('<xsl:value-of select="user:getName(.)"/>')
</xsl:attribute>
<font color="#EEEEEE"><b><u><xsl:value-of select="user:getName(.)"/></u></b></font>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="./*[position() < 6 and position() > 0]">
<xsl:sort select="./*[1]" order="ascending"/>
<tr bgcolor="#FFCCFF">
<xsl:for-each select="./*">
<td> <xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</Table>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://lucky.myrice.com" version="1.0">
<msxsl:script language="VBScript" implements-prefix="user">
<![CDATA[
Function getName(node)
getName = node.Item(0).nodeName
End Function
]]>
</msxsl:script>
<xsl:template match="/">
<xsl:apply-templates select="/*"/>
</xsl:template>
<xsl:template match="/*">
<table width="100%" border="0" style="font-size:9pt">
<tr>
<td align="left"><b>第 <span id="CurrentPage"></span> 页 总 <span id="PageCount"></span> 页    共有 <span id="RecordCount"></span> 条记录</b></td>
<td align="right"><b>每页记录数:<input onblur="setRecordsPerPage()" id="RecordsPerPage" style="vertical-align:middle;height:15pt;width:30px"/></b></td>
<td align="right">
<span id="Paging">
<input type="button" OnClick="FirstPage()" value="第一页"/>
<input type="button" OnClick="previousPage(1)" value="上一页"/>
<input type="button" OnClick="nextPage(1)" value="下一页"/>
<input type="button" OnClick="LastPage()" value="最末页"/>
</span>
</td>
</tr>
</table>
<Table WIDTH="100%" BORDER="0" cellpadding="0" cellspacing="1" style="font-size:11pt" bgcolor="#0099ff">
<tr bgcolor="#FF6600" style="cursor: hand;padding:5px">
<xsl:for-each select="./*[1]/*">
<td align="center">
<xsl:attribute name="onclick">
Sort('<xsl:value-of select="user:getName(.)"/>')
</xsl:attribute>
<font color="#EEEEEE"><b><u><xsl:value-of select="user:getName(.)"/></u></b></font>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="./*[position() < 6 and position() > 0]">
<xsl:sort select="./*[1]" order="ascending"/>
<tr bgcolor="#FFCCFF">
<xsl:for-each select="./*">
<td> <xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</Table>
</xsl:template>
</xsl:stylesheet>
还是在写xml以及.htc的时候都要注意,
如果哪个一个不处理,
都会出现不能显示中文的问题?
<?xml encoding=""?>
和xml文件本身的编码格式,要统一
<public:component>
<public:attach event="oncontentready" onevent="Init()" />
<public:attach event="onclick" onevent="Click()" />
<public:attach event="onmousedown" onevent="MouseDown()" />
<public:attach event="onmouseover" onevent="MouseOver()" />
<public:attach event="onmouseout" onevent="MouseOut()" />
<public:attach event="onmouseup" onevent="MouseUp()" />
<public:attach event="onselectstart" onevent="SelectStart()" /><public:method name="movenext" />
<public:method name="moveprevious" />
<public:method name="Sync" /><script language="JScript">//-----------------------------------------------
// Copyright ?2001 Microsoft Corporation
//
// Author(s): Grant Harris
// Bryn Waibel
//
//-----------------------------------------------这个好长的,不过我看好像是组件,应该可以通用吧,
这个例子中有www.lucky.myrice.com 的标志,应该也是你的吧,
名字是deeptree.
我要改一下的,可是改了一下午啦。没有弄好。
是在是弱人。帮我一下吧。
我说的哪个目录,请你帮我看一下具体要怎么改,我对这个是在是一窍不通。一级目录,组卷,测试,查询,我的考试,二级目录,组卷和测试下,为科目。
其他的就没有啦,你看应该改那里,我改的时候,把xml改了,用不了,改成汉字,用不了,
但是我把top.xml中的第一个目录改了,就可以用,当然也是改成英语的。
我改了一个下午。