Subject: RE: [xsl] Knight's Tour from java app (not command line)|
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 26 Mar 2007 00:23:40 +0100
The standard JAXP API only covers XSLT 1.0 facilities; the ability to start a transformation at a named template is specific to XSLT 2.0, so for this you need to drop into Saxon-specific classes. Cast the JAXP Transformer object to net.sf.saxon.Controller, and call the setInitialTemplate() method; then call the transform() method supplying null as the first argument. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Une Bivue [mailto:yt.dev@xxxxxxx] > Sent: 25 March 2007 17:25 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Knight's Tour from java app (not command line) > > Hey all, > > i've tried all the examples from command line, everything > works great after i've found the needed files. > > right now i'd like to reproduce the Knight's Tour from a "java app" > then not from command line. > > and i look for advices. > > i think i must use : net.sf.saxon.Transform and invoke the > main method with the proper arguments (tour.xsl, start=e5, tour.html). > > but i don't know what to do with the arg "-it" ??? > > best, > > Yvon > > PS : > > in fact my app will be writen in RubyCocoa under MacOS X and > i'll use a ruby to java bridge (yajb-0.8.1) to play with > XSLT2 and XQuery.