I am an intern working for USAirways.com for the summer. I am doing a little project with XML to dymanically display airport information. I have tried everything! My XML will only work in IE. I know the part that doesn't run in Netscape (7.1) but I can't fix it.
What I have are XML & XSL files. The XML file holds airport information, the XSL file dynamically displays the information. For example. In IE if you go to:
http://localhost/airportList.xml?=BWI
You will be displayed with all of the airport info for Balitmore Washington International. The part that doesn't work is the javascript that takes the URL and places it into an XSL variable:
<msxsl:script language="JScript" implements-prefix="url">
<![CDATA[
function findURL(nodelist) {
return nodelist.nextNode().url;
}
]]>
</msxsl:script>
You can find my files at:
http://www.usairways.com/eric/
View it with IE to see how it works. In order for the code to work, it must be running through a web server. You cannot just open the files locally in your browser.
I think it *might* have something to do with not having a <xslutput> element anywhere to declare the "cdata-section-elements".
ANY help would be greatly appreciated! Thanks!
- Eric