How to populate xml doc in div from another div li

2019-07-17 15:46发布

I have a "sidebar" div with links that I would like to link up to some xml files. (with xslt that references three other xml files) I would like the xml to be displayed in the "body" div kinda like an iframe. I cannot find a good solution for this as I am using the browser's native XSL transformation and not "wrapping" the xml up into html. I have been looking into an ajax solution but can only find ajax scripts that populate html or txt files. I have also looked at jquerys .load() solution and mootools XMLRPC but is a little complicatingfor me. I am new with ajax and any help or direction would be greatly appreciated. Here is a link to my last post if you need more background info. How to display XSLT in IE 8 and Chrome with javascript and three XML files?

2条回答
Anthone
2楼-- · 2019-07-17 16:09

You can use the IE's default stylesheet: DEFAULTSS.xsl

However, in the later versions of IE it cannot be readily downloaded as in the previous versions (res://msxml.dll/DEFAULTSS.xsl), so you need to find it by search.

As this isn't standard XSLT, I would recommend its adaptations such as the one contained in the XPath Visualizer.

查看更多
我命由我不由天
3楼-- · 2019-07-17 16:20

I have found a SOLUTION. I used a server side php script I found on this site - link Then I used this ajax script to load the xml - link It works perfectly. I am very happy. Now I would like to try and use a php scan script to scan the directory and another script to create a new link to my new "populated" xml docs. CHALLENGING - yes we will see. Any info or direction would be appreciated.

查看更多
登录 后发表回答