Sha256: 336e48c78410690a8b0fbc0220d6ac1e3cb1326843787834a2f81d643c5f3223
Contents?: true
Size: 711 Bytes
Versions: 11
Compression:
Stored size: 711 Bytes
Contents
// Copyright 2005 Google Inc. // All Rights Reserved // // Tests for the XSLT processor. To run the test, open the file from // the file system. No server support is required. // // // Author: Steffen Meschkat <mesch@google.com> logging = true; xsltdebug = true; function el(id) { return document.getElementById(id); } function test_xslt() { var xml = xmlParse(el('xml').value); var xslt = xmlParse(el('xslt').value); var html = xsltProcess(xml, xslt); el('html').value = html; el('htmldisplay').innerHTML = html; } function cleanxml() { cleanvalue('xml'); cleanvalue('xslt'); } function cleanvalue(id) { var x = el(id); x.value = x.value.replace(/^\s*/, '').replace(/\n\s*/g, '\n'); }
Version data entries
11 entries across 11 versions & 2 rubygems