This topic has been archived. It cannot be replied.
-
工作学习 / IT杂谈 / 怎么用ASP(不是ASP.Net)对 XML进行分页显示. 给点思路 谢谢!!
-fengvan(Sunny);
2003-2-25
(#1061693@0)
-
Ever try XSL? Setup your template in XSL file and in your ASP use sth. like <% html = xmlDoc.transformNode(xslDoc.documentElement); Response.Write(html)%>. Search www.w3.org/TR/xsl/ for information.
-sammy(参商);
2003-2-28
(#1067955@0)
-
很有用,谢谢。
-ititit(IT挨踢IT);
2003-2-28
(#1067970@0)
-
FYI.
-sammy(参商);
2003-2-28
(#1068005@0)
-
不好意思,怎么拿到ASP文件的代码啊?存下来是空文件。
-ititit(IT挨踢IT);
2003-2-28
(#1068013@0)
-
I don't know either. I was just showing the xsl example. I don't have the environment now, but the asp code should be somewhat like this...not sure about the grammer, try it out yourself, I can only help that far.<%
xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.async = false
source.load("http://www.youngpup.net/projects/xml/xsl_paging/data.xml")
xslDoc= Server.CreateObject("MSXML2.DOMDocument")
xslDoc.async = false
xslDoc.load(" http://www.youngpup.net/projects/xml/xsl_paging/paging.xsl")
Response.Write(xmlDoc.transformNode(xslDoc.documentElement))
%>
-sammy(参商);
2003-2-28
{391}
(#1068039@0)
-
And that is only a simple solution, you may need to think about the frames and bars in your page.
-sammy(参商);
2003-2-28
(#1068043@0)
-
Thank you very much, you saved my time. :-)
-ititit(IT挨踢IT);
2003-2-28
(#1068049@0)
-
Yeah, and it costs my time. :(
-sammy(参商);
2003-2-28
(#1068070@0)
-
"对XML进行分页显示", 具体是什么意思?
-decentboy(曾经的帝国骑士);
2003-2-28
(#1067964@0)
-
用DOM不好吗?
-feather(ThanksGiving);
2003-2-28
(#1068107@0)
-
DOM works, and it is powerful in processing nodes. But I prefer XSL in rendering XML to HTML. DOM may get into danger if XML structure changes. Just guessing.
-sammy(参商);
2003-2-28
(#1068131@0)
-
wow, shi xiong zhen li hai ya, shen me shi hou ye jiao wo ji zhao ya~~~~
-semaphore(巾帼不让须眉);
2003-2-28
(#1068149@0)
-
Actually I almost know nothing about XML. I am just fooling around and trying to catch MMs' attention, and google helps a lot! :E)
-sammy(参商);
2003-2-28
(#1068161@0)