From e7767a3e0b1019658fe3a51480e62f9f19529232 Mon Sep 17 00:00:00 2001
From: BRIAN TINGLE run method is shown below. This sample also shows how to use
the onSaxonLoad function to ensure the Saxon-CE library loads fully
before any JavaScript API calls are made on the library.
This function returns a newly created
XSLT20Processor object.
Use this object's getResultDocument and
@@ -844,14 +882,31 @@
Sample JavaScript code:
- 0) { - window.alert(errors.toString()); } } // ------ DECLARE ERROR HANDLER - -------- function handler(saxonError) { errors.push(saxonError.message + " " - + saxonError.level + " " + saxonError.time); } ]]> + 0) { + window.alert(errors.toString()); + } +} +// ------ DECLARE ERROR HANDLER -------- +function handler(saxonError) { + errors.push(saxonError.message + " " + saxonError.level + " " + saxonError.time); +} +]]>Sample JavaScript code:
- +