对于下面的如何指定编码位中文?

onekey 2003-08-29 11:40:36
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:local="#local-functions"
xmlns:xql="#xql-fucntions"
xmlns:auto-nsl="http://www.w3.org/TR/WD-xsl"
xmlns:dav="DAV:"
xmlns:office="urn:schemas-microsoft-com:office:office"
xmlns:fulltext="urn:schemas.microsoft.com:fulltextqueryinfo:"
xmlns:pub="urn:schemas-microsoft-com:publishing:">

<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:output method="html"/>
<xsl:param name="dataURL"></xsl:param>
<xsl:param name="showDetails"></xsl:param>
<xsl:param name="catName"></xsl:param>
<xsl:param name="catDesc"></xsl:param>
<xsl:param name="catContactName"></xsl:param>
<xsl:param name="catContactEmail"></xsl:param>
<xsl:param name="catURL"></xsl:param>
<xsl:param name="baseURL"></xsl:param>
<xsl:param name="parentURL"></xsl:param>
<xsl:param name="categoryRootName"></xsl:param>
<xsl:param name="categoryRootURL"></xsl:param>



<xsl:template match="/">

<TABLE width ="100%">
<TR>
<TD align="left" width ="75%">
<xsl:value-of disable-output-escaping="yes" select="local:getClickableFolderPathHtml(string($baseURL),string($categoryRootName),string($categoryRootURL))"/>
</TD>
<TD align="right">
<xsl:if test="$parentURL!=''">
<xsl:element name="A">
<xsl:attribute name="href">javascript:document.frmManageCat.mode.value='';document.frmManageCat.ParentURL.value='';document.frmManageCat.ID.value='<xsl:value-of select = "$parentURL"/>';document.frmManageCat.submit();</xsl:attribute>
<IMG border="0" src="Return.gif" />
Up One Category
</xsl:element>
</xsl:if>
</TD>
</TR>
</TABLE>
<TABLE width="100%" border="0">
<TR>
<TD valign="top">
<TABLE border="0">
<FORM>
<xsl:attribute name="method">post</xsl:attribute>
<xsl:attribute name="action"><xsl:value-of select="$dataURL"/></xsl:attribute>
<xsl:attribute name="ID">frmManageCat</xsl:attribute>
<xsl:attribute name="name">frmManageCat</xsl:attribute>
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">hidden</xsl:attribute>
<xsl:attribute name="ID">ID</xsl:attribute>
<xsl:attribute name="name">ID</xsl:attribute>
</xsl:element>
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">hidden</xsl:attribute>
<xsl:attribute name="ID">ParentURL</xsl:attribute>
<xsl:attribute name="name">ParentURL</xsl:attribute>
</xsl:element>
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">hidden</xsl:attribute>
<xsl:attribute name="ID">mode</xsl:attribute>
<xsl:attribute name="name">mode</xsl:attribute>
</xsl:element>
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">hidden</xsl:attribute>
<xsl:attribute name="ID">deleteURL</xsl:attribute>
<xsl:attribute name="name">deleteURL</xsl:attribute>
</xsl:element>
<xsl:element name="INPUT">
<xsl:attribute name="TYPE">hidden</xsl:attribute>
<xsl:attribute name="ID">EditID</xsl:attribute>
<xsl:attribute name="name">EditID</xsl:attribute>
</xsl:element>
<xsl:for-each select="dav:multistatus/dav:response">
<TR>

<TD valign="center"><IMG src="SquareBullet.gif"/></TD>
<TD valign="top" align="left">
<A>
<xsl:attribute name="ID">aDrillCat</xsl:attribute>
<xsl:attribute name="href">javascript:document.frmManageCat.mode.value='';document.frmManageCat.ParentURL.value='<xsl:value-of select="$baseURL"/>';document.frmManageCat.ID.value='<xsl:value-of select = "dav:propstat/dav:prop/dav:href"/>';document.frmManageCat.submit();</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="dav:propstat/dav:prop/dav:displayname"/></xsl:attribute>
<B><xsl:value-of select="dav:propstat/dav:prop/dav:displayname"/></B>
</A>
</TD>
..............................(省略)

如何指定<xsl:attribute name="ID">aDrillCat</xsl:attribute>中输入中文,并且在下一个页面读出来的是中文(不然读出来是“技术沉淀文档“这样之类的乱码)

十分着急,谢谢啦!!!
...全文
32 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
onekey 2003-08-29
  • 打赏
  • 举报
回复
传到asp页面还是乱吗
onekey 2003-08-29
  • 打赏
  • 举报
回复
传到后台asp页面时还是乱吗
saucer 2003-08-29
  • 打赏
  • 举报
回复
<xsl:stylesheet ...>
<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration="yes"/>

....
</xsl:stylesheet>
onekey 2003-08-29
  • 打赏
  • 举报
回复
我加上了之后提示我错误:Error #=-2147467259 = 样式表没有包含文档元素。样式表可能是空的,或它可能不是一个标准格式的 XML 文档。
看我加的为什么不对?

<?xml version="1.0"?>
<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration="yes"/>
<xsl:stylesheet .................

onekey 2003-08-29
  • 打赏
  • 举报
回复
sharepoint server 2001 啊,
它采用的是采用unicode编码
saucer 2003-08-29
  • 打赏
  • 举报
回复
what development environment? try

<xsl:output method="xml" indent="yes" encoding="gb2312" omit-xml-declaration="yes"/>
saucer 2003-08-29
  • 打赏
  • 举报
回复
what development environment? try

<xsl:output method="xml" indent="yes" encoding="gb2312" omit-xml-declaration="yes"/>

8,906

社区成员

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

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