diff --git a/user-doc/doc/api.xml b/user-doc/doc/api.xml
index 2a3dc73..e402b4b 100644
--- a/user-doc/doc/api.xml
+++ b/user-doc/doc/api.xml
@@ -186,16 +186,41 @@
the Saxon 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:
- +