185
function xsltHandler(xsltdoc, xattr) {
186
xattr.xslt_processor.importStylesheet(xsltdoc);
184
function xsltApply(xsltproc, xmldoc, place) {
185
if (typeof place == "string") {
186
place = document.getElementById(place);
188
adei.ReportError(translate("Node %s is not found", place));
195
if (typeof XSLTProcessor != "undefined") {
196
htmldoc = xsltproc.transformToFragment (xmldoc, document);
198
place.innerHTML = "";
199
place.appendChild (htmldoc);
201
} else if (typeof xmldoc.transformNode != "undefined") {
202
htmldoc = xmldoc.transformNode(xsltproc);
204
div.innerHTML = htmldoc;
207
adei.ReportError(translate("Browser is not supporting XSL transform"));
213
function xsltHandler(xsltdoc, xattr, error) {
215
xattr.handler(null, xattr.attr, error);
219
if (typeof XSLTProcessor != "undefined") { // Mozilla, Opera, Safari
220
xattr.xslt_processor = new XSLTProcessor();
221
xattr.xslt_processor.importStylesheet(xsltdoc);
222
} else { // IE or unsupported
223
xattr.xslt_processor = xsltdoc;
187
226
xattr.handler(xattr.xslt_processor, xattr.attr);