I have a data intensive web app I am developing. The core of the appwill do a db query and build a page. I plan on getting the data as xmland feeding that and a xslt stylesheet to the browser. Here is myquestion: the user can the request more data. I would like to somehowuse the same (or a version thereof) stylesheet to transform this newdata. But this is added to the existing page, not replacing it. Isthere a simple way to do this?TIA.--Matt SilbersteinDo something today about the Darfur Genocide http://www.beawitness.org http://www.darfurgenocide.org http://www.savedarfur.org"Darfur: A Genocide We can Stop" 解决方案What does "added to the existing page" mean?This is the web. HTTP works so that you get a new page (which might bebigger) and although it _looks_ like "the old page with things added toit", it''s actually a whole new page made of entirely new bits andbytes. So from the traditionalist HTTP view, your request isimpossible because HTTP just doesn''t work like that.For good efficient design, you should look at caching the stylesheet onthe server though - that''s certainly worth doing.However your request is a reasonable one and these days it''sincreasingly possible. Look at using AJAX for a way that really is"adding to the existing page". This depends on client-side scriptingthough.An alternative could be content assembly somewhere between theorigin and the browser. The idea being that a proxy, or a filterwithin the server, caches the original contents and adds newcontents as necessary. This can be used to avoid repeatingexpensive processing on the server, while also avoiding browser-dependent scripting. http://www.eu.apachecon.com/konferen...ml#session-th7--Nick KewWhat does "added to the existing page" mean?This is the web. HTTP works so that you get a new page (which might bebigger) and although it _looks_ like "the old page with things added toit", it''s actually a whole new page made of entirely new bits andbytes. So from the traditionalist HTTP view, your request isimpossible because HTTP just doesn''t work like that.For good efficient design, you should look at caching the stylesheet onthe server though - that''s certainly worth doing.However your request is a reasonable one and these days it''sincreasingly possible. Look at using AJAX for a way that really is"adding to the existing page". This depends on client-side scriptingthough.I was not clear, sorry. Yes, it is going to be an AJAX app, there islots of JavaScript already. What I wanted was some JavaScript way totransform the incoming xml. That way I only need to maintain one codesbase that turns the data to a displayable form. I can use a xsltstylesheet for the initial, but would have to do the update (getting anew record, for example) through JavaScript.--Matt SilbersteinDo something today about the Darfur Genocide http://www.beawitness.org http://www.darfurgenocide.org http://www.savedarfur.org"Darfur: A Genocide We can Stop" 这篇关于我可以使用xslt样式表来更新网页吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!