var multiplier=1; // Extension element implementations always take two arguments. The first // argument is the XSL Processor context; the second argument is the element. function timelapse(xslProcessorContext, elem) { multiplier=parseInt(elem.getAttribute("multiplier")); // The element return value is placed in the result tree. // If you do not want a return value, return null. return null; } function getdate(numdays) { // Use a constant date so test output is determinate var d = new Date(2001, 8, 5); d.setDate(d.getDate() + parseInt(numdays*multiplier)); return d.toLocaleString(); }

We have received your enquiry and will respond by