Hi Michael ,

Looking at various SaxonCE sites I found that what I missed up in the initialization of Saxon was not the correct definition of the onSaxonLoad function but the command :

Saxonce.onInjectionDone('Saxon');

Performing this command before the serialization of GI objects ( and after the initialization of SaxonCE ) works fine and the Saxon object is available to create XSLT20Processor instances.

In order to understand better the case...
General Interface ( formerly TIBCO General Interface, now is an opensource,  property of the Dojo Fundation ) is the gran father of client side ajax applications, and the whole set of application elements ( gui objects , div ) are created via extended xslt templates ( it extends the default browser xslt 1.0  capabilities with internal functions ).
GI has hundreds of functions to work and communicate between the page elements/objects but the restriction to XSLT 1.0 ( even if extended a bit ) is today a big limitation.

I've several XSLT 2.0 based reports that are executed via remote services ( running saxon transformation at server side ) and my intention is to execute them at client side using the XSLT20Processor.
The next step would be to use the XSLT20Processor instead of the jsx3 template engine taking advantage of XSLT 2.0 to create complex objects that inherit standard GI object properties and events.

Thanks and Best Regards,
Andrea.


2013/3/3 Michael Kay <mike@saxonica.com>
I notice that the examples here

http://www.saxonica.com/ce/user-doc/1.1/index.html#!api/command

are badly formatted, we need to fix this. It should say:

// Using Saxon.run method with the Command object to start an HTML page transform:

var onSaxonLoad = function() {
  Saxon.run( { stylesheet:  "display-geo.xsl",
                      source: "geo-files.xml",
                      initialMode: "pull",
                      parameters: {mass-kg: 225, point: [128, 79], label: "Definitions" },
                      errorHandler: saxonHandler
                }); }

// equivalent using the procedural JavaScript API:
var onSaxonLoad = function() {
                var xml = Saxon.requestXML(geo-files.xml);
                var xsl =  Saxon.requestXML("display-geo.xsl");
                var proc = new XSLT20Processor(xsl);
                proc.setParameter(null, "mass-kg", 225);
                proc.setParameter(null, "point", [128,  79]);
                proc.setParameter(null, "label", "Definitions");
                proc.setErrorHandler(saxonHandler);
                proc.updateHTMLDocument(xml, null); }

As far as I know, all our tests for invoking the engine from JavaScript (as distinct from nominating the stylesheet directly in a script element) use one of these techniques. The Saxon JS code itself is loaded using the script element, and if I understand the GWT machinery correctly, the onSaxonLoad() method is called as soon as loading the code has completed.

Michael Kay
Saxonica


On 02/03/2013 07:25, Andrea Carlini wrote:
Can you tell me which a couple of environment where you test it and so I can check if there are some steps I'm missing?

Thanks in advance.
Andy

On 02/mar/2013, at 01:31, Michael Kay <mike@saxonica.com> wrote:

I don't know GI, I'm afraid. We haven't done any testing with this environment, and I would need to study it to work out the implications.

Michael Kay
Saxonica

On 01/03/2013 22:40, Andrea Carlini wrote:
I'm using General Interface (www.generalinterface.org), and yes, I need to process multiple nodes with different templates when certain events occurs.

In GI all javascript libraries are normally loaded as resources, but after loading Saxon.nocache.js ( debug ) I'm not able to find any Saxon static object to work with, it only initialize a saxonce function.

Do I miss something ?

Thanks in advance,
Andy


On 01/mar/2013, at 22:14, Michael Kay <mike@saxonica.com> wrote:

I'm not sure what the specific problem is. Isn't this just a question of writing the write Javascript to invoke the appropriate APIs when the relevant events occur?

Why do you want multiple processors? (not that there's any problem in getting them; I'm just trying to understand your requirement better).

Michael Kay
Saxonica

On 01/03/2013 18:05, Andrea Carlini wrote:
Hi,

Is there any way to initialize Saxonce , instantiate multiple processors and perform transformations after a page has been loaded ?
I'm not able to find any information in the documentation.

I'm using the latest 1.1

Thanks in advance
Andy


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help