XML/XSL Portal

Multiple Stylesheet Aware
HideXML MainHide

This JavaScript function will copy an XMLDOM into the Adobe SVGDOM. Just include it in your HTML document like this.

<script language="JavaScript" src="domtodom.js"></script>

Then call it like this

domtodom(xmldom, "embeddedsvg");

Download this has been patched on 2001-09-15 for Adobe V3beta

This allows you to do transformations in the browser and then output the result to the Adobe Viewer.

The following code will transform some xml with xsl and display the result in the Adobe Viewer.

var xml = new ActiveXObject("Microsoft.XMLDOM");

var xsl = new ActiveXObject("Microsoft.XMLDOM");

var svg = new ActiveXObject("Microsoft.XMLDOM");

xml.async = xsl.async = false;



xml.transformNodeToObject(xsl, svg);

domtodom(svg, "transform");

***Warning this code is Alpha*** I have noticed in some cases the browser locking up after changing more than 2 times. If Adobe or MS have any ideas please let me know. This seems to be fixed in the latest beta. However the animation doesn't run after reloading ;-(((.

Another really annoying thing is that the control takes the background-color from the body node instead of the node that it is in. It's not difficult to solve but this is alpha so be warned. Also it doesn't work with scroll. So if you can't see the whole thing you won't see any animation.

Reminds me of the joke

Q: What is the difference between a washing machine and adumb blonde?

A: You can dump your load in a washing machine and it Won't follow you around for weeks.



View XML
View XSL