如何让一个XML文档动态的引入不同的XSL文档,在不同的情况下,做出不同的显示?

CFree 2001-09-23 12:06:07
谢谢!
...全文
65 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
karma 2001-09-23
  • 打赏
  • 举报
回复
tell us the examples for 不同的情况, 不同的显示 , 不同的XSL文档
karma 2001-09-23
  • 打赏
  • 举报
回复
<%
dim xmldoc, xsldoc
set xmldoc = Server.CreateObject("MSXML2.DOMDOCUMENT")
xmldoc.async = false
xmldoc.load server.mappath("myxml.xml")

set xsldoc = Server.CreateObject("MSXML2.DOMDOCUMENT")
xsldoc.async = false

if request("choose")=1 then
xsldoc.load server.mappath("myxsl1.xsl")
else
xsldoc.load server.mappath("myxsl2.xsl")
end if
response.write xmldoc.transformnode(xsldoc)
%>
CFree 2001-09-23
  • 打赏
  • 举报
回复
karma(无为);Would you give me some simple examples both on sever and client? 
Your attention will be highly appreciated.
CFree 2001-09-23
  • 打赏
  • 举报
回复
比如:
<%
if request("choose")=1 then
'用myxsl1.xsl显示myxml.xml
else
'用myxsl2.xsl显示myxml.xml
end if
%>
karma 2001-09-23
  • 打赏
  • 举报
回复
Depending on how you are going to transform your XML files, server-side or client-side, there are various ways to achieve what you want.

8,906

社区成员

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

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