Change XSLT processor in GUI?
Thursday, 2 February 2017 · 6 messages · last reply 3 Feb 2017
RH
Regine I. Heberlein2 Feb 2017 21:44 #
Hello everyone,
Is it possible to change the XSLT processor in the GUI, either from a menu option or as an argument to
xslt:transform() or in some other nifty way that I haven't been able to figure out on my own? xslt:version() returns 1.0, but I need it to use 2.0, i.e. I want to invoke Saxon.
I've looked through the documentation, but all I can find is instructions on how to do this in standalone mode by adding the jar file to the classpath.
Many thanks, and apologies if I've overlooked the obvious!
Regine
Regine Heberlein
Principal Cataloger and Metadata Analyst, Rare Book Collections Princeton University Library
One Washington Road
Princeton, NJ 08540
609-258-6156RK
Rolf Kleef2 Feb 2017 22:41 #
Hi Regine,
I've copied saxon9he.jar into the lib directory of my basex
installation, which gives me
xslt:version() 2 in the GUI.
Maybe that's an option? Not sure if that's the official way: when I upgrade I need to make sure to copy it again.
~~Rolf.Quoted text · Regine I. Heberlein · 40 lines
On 02/02/17 21:44, Regine I. Heberlein wrote: > > Hello everyone, > > > > Is it possible to change the XSLT processor in the GUI, either from a > menu option or as an argument to xslt:transform() or in some other > nifty way that I haven’t been able to figure out on my own? > xslt:version() returns 1.0, but I need it to use 2.0, i.e. I want to > invoke Saxon. > > > > I’ve looked through the documentation, but all I can find is > instructions on how to do this in standalone mode by adding the jar > file to the classpath. > > > > Many thanks, and apologies if I’ve overlooked the obvious! > > > > Regine > > > > Regine Heberlein > > Principal Cataloger and Metadata Analyst, Rare Book Collections > > Princeton University Library > > One Washington Road > > Princeton, NJ 08540 > > 609-258-6156 >
RH
Regine I. Heberlein2 Feb 2017 22:46 #
Thanks Rolf! I've tried the same with saxon9ee.jar, with no luck. I re-started the GUI, same. Maybe EE is not supported?
Regine Heberlein
Principal Cataloger and Metadata Analyst, Rare Book Collections Princeton University Library
One Washington Road
Princeton, NJ 08540
609-258-6156
Quoted text · Rolf Kleef · 20 lines
From: Rolf Kleef [mailto:rolf at drostan.org] Sent: Thursday, February 02, 2017 4:42 PM To: Regine I. Heberlein; basex-talk at mailman.uni-konstanz.de Subject: Re: [basex-talk] Change XSLT processor in GUI? Hi Regine, I've copied saxon9he.jar into the lib directory of my basex installation, which gives me xslt:version() 2 in the GUI. Maybe that's an option? Not sure if that's the official way: when I upgrade I need to make sure to copy it again. ~~Rolf. On 02/02/17 21:44, Regine I. Heberlein wrote: Hello everyone, Is it possible to change the XSLT processor in the GUI, either from a menu option or as an argument to xslt:transform() or in some other nifty way that I haven't been able to figure out on my own? xslt:version() returns 1.0, but I need it to use 2.0, i.e. I want to invoke Saxon. I've looked through the documentation, but all I can find is instructions on how to do this in standalone mode by adding the jar file to the classpath. Many thanks, and apologies if I've overlooked the obvious! Regine Regine Heberlein Principal Cataloger and Metadata Analyst, Rare Book Collections Princeton University Library One Washington Road Princeton, NJ 08540 609-258-6156
AB
Andy Bunce2 Feb 2017 23:01 #
Hi Regine,
The method Rolf describes works for me, but if you are on Windows you need to use basexgui.bat rather than basex.exe to start the GUI.
Regards
/Andy
Quoted text · Regine I. Heberlein · 81 lines
On 2 February 2017 at 21:46, Regine I. Heberlein <heberlei at princeton.edu> wrote: > Thanks Rolf! I’ve tried the same with saxon9ee.jar, with no luck. I > re-started the GUI, same. Maybe EE is not supported? > > > > Regine Heberlein > > Principal Cataloger and Metadata Analyst, Rare Book Collections > > Princeton University Library > > One Washington Road > > Princeton, NJ 08540 > > 609-258-6156 <(609)%20258-6156> > > > > *From:* Rolf Kleef [mailto:rolf at drostan.org] > *Sent:* Thursday, February 02, 2017 4:42 PM > *To:* Regine I. Heberlein; basex-talk at mailman.uni-konstanz.de > *Subject:* Re: [basex-talk] Change XSLT processor in GUI? > > > > Hi Regine, > > I've copied saxon9he.jar into the lib directory of my basex installation, > which gives me xslt:version() 2 in the GUI. > > Maybe that's an option? Not sure if that's the official way: when I > upgrade I need to make sure to copy it again. > > ~~Rolf. > > > > On 02/02/17 21:44, Regine I. Heberlein wrote: > > Hello everyone, > > > > Is it possible to change the XSLT processor in the GUI, either from a menu > option or as an argument to xslt:transform() or in some other nifty way > that I haven’t been able to figure out on my own? xslt:version() returns > 1.0, but I need it to use 2.0, i.e. I want to invoke Saxon. > > > > I’ve looked through the documentation, but all I can find is instructions > on how to do this in standalone mode by adding the jar file to the > classpath. > > > > Many thanks, and apologies if I’ve overlooked the obvious! > > > > Regine > > > > Regine Heberlein > > Principal Cataloger and Metadata Analyst, Rare Book Collections > > Princeton University Library > > One Washington Road > > Princeton, NJ 08540 > > 609-258-6156 <(609)%20258-6156> > > >
M
I do not know if this can help you, but if you change the xslt processor, you then need to run ./basexgui from the bin directory (not the basex.jar file)
Quoted text · Rolf Kleef · 1 line
Il giorno 02 feb 2017, alle ore 22:41, Rolf Kleef <rolf at drostan.org> ha scritto:
Hi Regine,
I've copied saxon9he.jar into the lib directory of my basex installation, which gives me
xslt:version() 2 in the GUI.
Maybe that's an option? Not sure if that's the official way: when I upgrade I need to make sure to copy it again. ~~Rolf.Quoted text · Regine I. Heberlein · 17 lines
> On 02/02/17 21:44, Regine I. Heberlein wrote: > Hello everyone, > > Is it possible to change the XSLT processor in the GUI, either from a menu option or as an argument to xslt:transform() or in some other nifty way that I haven’t been able to figure out on my own? xslt:version() returns 1.0, but I need it to use 2.0, i.e. I want to invoke Saxon. > > I’ve looked through the documentation, but all I can find is instructions on how to do this in standalone mode by adding the jar file to the classpath. > > Many thanks, and apologies if I’ve overlooked the obvious! > > Regine > > Regine Heberlein > Principal Cataloger and Metadata Analyst, Rare Book Collections > Princeton University Library > One Washington Road > Princeton, NJ 08540 > 609-258-6156
RH
Regine I. Heberlein3 Feb 2017 02:25 #
That did it--thanks very much to you and Andy for that tip!! Regine
Quoted text · meumapple · 23 lines
From: meumapple [meumapple at gmail.com] Sent: Thursday, February 02, 2017 17:19 To: Rolf Kleef Cc: Regine I. Heberlein; basex-talk at mailman.uni-konstanz.de Subject: Re: [basex-talk] Change XSLT processor in GUI? I do not know if this can help you, but if you change the xslt processor, you then need to run ./basexgui from the bin directory (not the basex.jar file) Il giorno 02 feb 2017, alle ore 22:41, Rolf Kleef <rolf at drostan.org<mailto:rolf at drostan.org>> ha scritto: Hi Regine, I've copied saxon9he.jar into the lib directory of my basex installation, which gives me xslt:version() 2 in the GUI. Maybe that's an option? Not sure if that's the official way: when I upgrade I need to make sure to copy it again. ~~Rolf. On 02/02/17 21:44, Regine I. Heberlein wrote: Hello everyone, Is it possible to change the XSLT processor in the GUI, either from a menu option or as an argument to xslt:transform() or in some other nifty way that I haven’t been able to figure out on my own? xslt:version() returns 1.0, but I need it to use 2.0, i.e. I want to invoke Saxon. I’ve looked through the documentation, but all I can find is instructions on how to do this in standalone mode by adding the jar file to the classpath. Many thanks, and apologies if I’ve overlooked the obvious! Regine Regine Heberlein Principal Cataloger and Metadata Analyst, Rare Book Collections Princeton University Library One Washington Road Princeton, NJ 08540 609-258-6156
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery