Using the Mozilla JavaScript interface to XSL Transformations

Using the Mozilla JavaScript interface to XSL Transformations – MDC Docs.

1	var testTransform = document.implementation.createDocument("", "test", null);
2	// just an example to get a transform into a script as a DOM
3	// XMLDocument.load is asynchronous, so all processing happens in the
4	// onload handler
5	testTransform.addEventListener("load", onload, false);
6	testTransform.load("test-transform.xml");
7	function onload() {
8	  processor.importStylesheet(testTransform);
9	}

This entry was posted in XML / XSL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s