From e7767a3e0b1019658fe3a51480e62f9f19529232 Mon Sep 17 00:00:00 2001 From: BRIAN TINGLE Date: Sun, 30 Mar 2014 21:37:03 -0700 Subject: [PATCH] restore significant whitespace to CDATA sections I have found this makes the documentation more useable. --- user-doc/doc/api.xml | 119 +++++++++++++++++++++++++++++++++---------- 1 file changed, 91 insertions(+), 28 deletions(-) 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.

- +

Saxon

@@ -716,10 +741,23 @@ Command object parameter to describe the XSLT transform to run. The Command object is designed to be used as JavaScript literal:

- +

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); +} +]]>

setLogLevel

@@ -1856,12 +1911,20 @@

Sample JavaScript code:

- +

setSuccess