summaryrefslogtreecommitdiffstats
path: root/site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2011-05-01 10:52:29 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2011-05-01 10:52:29 +0000
commitdf2fa78df72c2027669f095a5a1b7e3b4ef955db (patch)
tree95253c6d7232107a8b0f942019b49643f51b49c2 /site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html
parent8838472c0134515633153aeabfdbf69709f90b86 (diff)
TUSCANY-3860: Add /java/sca to URL of Eclipse update site on tuscany.apache.org
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1098252 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html')
-rw-r--r--site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html b/site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html
new file mode 100644
index 0000000000..fe3fb114dc
--- /dev/null
+++ b/site/trunk/site-publish/updatesite/java/sca/1.6.2/index.html
@@ -0,0 +1,60 @@
+<html>
+<head>
+<title>tuscany-updatesite</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<style>@import url("web/site.css");</style>
+<script type="text/javascript">
+ var returnval = 0;
+ var stylesheet, xmlFile, cache, doc;
+ function init(){
+ // NSCP 7.1+ / Mozilla 1.4.1+ / Safari
+ // Use the standard DOM Level 2 technique, if it is supported
+ if (document.implementation && document.implementation.createDocument) {
+ xmlFile = document.implementation.createDocument("", "", null);
+ stylesheet = document.implementation.createDocument("", "", null);
+ if (xmlFile.load){
+ xmlFile.load("site.xml");
+ stylesheet.load("web/site.xsl");
+ } else {
+ alert("Document could not be loaded by browser.");
+ }
+ xmlFile.addEventListener("load", transform, false);
+ stylesheet.addEventListener("load", transform, false);
+ }
+ //IE 6.0+ solution
+ else if (window.ActiveXObject) {
+ xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
+ xmlFile.async = false;
+ xmlFile.load("site.xml");
+ stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
+ stylesheet.async = false;
+ stylesheet.load("web/site.xsl");
+ cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
+ cache.stylesheet = stylesheet;
+ transformData();
+ }
+ }
+ // separate transformation function for IE 6.0+
+ function transformData(){
+ var processor = cache.createProcessor();
+ processor.input = xmlFile;
+ processor.transform();
+ data.innerHTML = processor.output;
+ }
+ // separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
+ function transform(){
+ returnval+=1;
+ if (returnval==2){
+ var processor = new XSLTProcessor();
+ processor.importStylesheet(stylesheet);
+ doc = processor.transformToDocument(xmlFile);
+ document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
+ }
+ }
+</script>
+</head>
+<body onload="init();">
+<!--[insert static HTML here]-->
+<div id="data"><!-- this is where the transformed data goes --></div>
+</body>
+</html>