xsl-list
[Top] [All Lists]

RE: [xsl] Knight's Tour from java app (not command line)

2007-03-25 16:24:04

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 Bévue [mailto:yt(_dot_)dev(_at_)free(_dot_)fr] 
Sent: 25 March 2007 17:25
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>