|
Lines 89-94
Link Here
|
| 89 |
|
89 |
|
| 90 |
// platformMoz: http://www.mozilla.org/projects/xslt/js-interface.html |
90 |
// platformMoz: http://www.mozilla.org/projects/xslt/js-interface.html |
| 91 |
// platformIE6: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp |
91 |
// platformIE6: http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp |
|
|
92 |
// platformSafari: http://developer.apple.com/internet/safari/faq.html#anchor21 |
| 93 |
// http://developer.apple.com/internet/webcontent/xmlhttpreq.html |
| 92 |
|
94 |
|
| 93 |
var platformMoz = (document.implementation && document.implementation.createDocument); |
95 |
var platformMoz = (document.implementation && document.implementation.createDocument); |
| 94 |
var platformIE6 = (!platformMoz && document.getElementById && window.ActiveXObject); |
96 |
var platformIE6 = (!platformMoz && document.getElementById && window.ActiveXObject); |
|
Lines 117-122
Link Here
|
| 117 |
|
119 |
|
| 118 |
function Initialize() |
120 |
function Initialize() |
| 119 |
{ |
121 |
{ |
|
|
122 |
// Test |
| 120 |
if (noXSLT) |
123 |
if (noXSLT) |
| 121 |
{ |
124 |
{ |
| 122 |
FatalError(); |
125 |
FatalError(); |
|
Lines 125-135
Link Here
|
| 125 |
Defaults(); |
128 |
Defaults(); |
| 126 |
} |
129 |
} |
| 127 |
|
130 |
|
|
|
131 |
function Initialize(backupURL) |
| 132 |
{ |
| 133 |
// Test |
| 134 |
if (noXSLT) |
| 135 |
{ |
| 136 |
FatalError(backupURL); |
| 137 |
return; |
| 138 |
} |
| 139 |
Defaults(); |
| 140 |
} |
| 141 |
|
| 128 |
function Defaults() |
142 |
function Defaults() |
| 129 |
{ |
143 |
{ |
| 130 |
SetTarget('target_content'); |
144 |
SetTarget('target_content'); |
| 131 |
// SetInput('hyadesfeatures.xml'); |
|
|
| 132 |
// SetStylesheet('tptpofficialplan.xsl'); |
| 133 |
} |
145 |
} |
| 134 |
|
146 |
|
| 135 |
function SetTarget(id) |
147 |
function SetTarget(id) |
|
Lines 168-179
Link Here
|
| 168 |
|
180 |
|
| 169 |
function FatalError() |
181 |
function FatalError() |
| 170 |
{ |
182 |
{ |
| 171 |
alert("Sorry, this doesn't work in your browser"); |
183 |
document.write("Sorry, this doesn't work in your browser. This page needs to be viewed in a browser that supports XSLT processing via JavaScript."); |
|
|
184 |
} |
| 185 |
|
| 186 |
function FatalError(backupURL) |
| 187 |
{ |
| 188 |
document.write("Sorry, this doesn't work in your browser. This page needs to be viewed in a browser that supports XSLT processing via JavaScript. You can try viewing the <a href='" + backupURL + "'>alternate page</a> instead."); |
| 172 |
} |
189 |
} |
| 173 |
|
190 |
|
| 174 |
function NoSuchParam(name) |
191 |
function NoSuchParam(name) |
| 175 |
{ |
192 |
{ |
| 176 |
alert("There is no " + name + " parameter"); |
193 |
document.write("There is no " + name + " parameter"); |
| 177 |
} |
194 |
} |
| 178 |
|
195 |
|
| 179 |
function CreateDocument() |
196 |
function CreateDocument() |