Eclipse plugin and XSLTProc

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mooyah
Posts: 2
Joined: Tue Dec 07, 2010 9:31 pm

Eclipse plugin and XSLTProc

Post by mooyah »

Hello,

I am having trouble getting the XSLTProc transformer and validator working in Eclipse plugin version 12.

From the about XML Editor page:
XSLTProc is part of libxslt (the XSLT C library for GNOME) and is packaged in the Windows, Mac OS X and Linux standalone <oXygen/> distributions. In case you want to use it from the Eclipse plugin, you have to copy the executable files into the plugin directory.
What files do I need to copy exactly?

TYIA
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin and XSLTProc

Post by adrian »

Hello,

The needed files are mentioned in the user guide:
http://www.oxygenxml.com/doc/ug-eclipse ... ssors.html

But XSLTProc should work out-of-the-box in Windows(the processor files are included in the plugin), Linux(if you have installed the xsltproc package) and Mac OS X (included in the OS).

On what platform are you using Eclipse with the Oxygen plugin?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mooyah
Posts: 2
Joined: Tue Dec 07, 2010 9:31 pm

Re: Eclipse plugin and XSLTProc

Post by mooyah »

I'm using eclipse on windows 7 x64.

I see the XSLTProc options. Is there anyway to set the Engine used for XSLT validation to being XSLTProc?
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin and XSLTProc

Post by adrian »

Oxygen doesn't provide built-in support to use XSLTProc as a validator.
Is that even possible? I don't see an XSLTProc command line argument for XSLT validation.

However, if you do know what command line arguments to use for XSLTProc, you can set it up as a custom validation engine(Options -> Preferences -> Editor -> Custom Validation Engines).

http://www.oxygenxml.com/doc/ug-oxygenE ... ation.html

Give it a name, browse for the executable path and add the XSL Editor to the Associated editors. Then you can specify the command line arguments in the field below(Default). Use the editor variables(macros):
${cf} - for the path of the currently selected editor
or
${currentFileURL} - for the URL of the currently selected editor

You will find xsltproc.exe in
- <Eclipse-folder>\plugins\com.oxygenxml.editor_* if you have installed Oxygen via the Eclipse update site
or
- <Eclipse-folder>\dropins\com.oxygenxml.editor_*\plugins\com.oxygenxml.editor_* if you have manually downloaded and extracted the zip plugin distribution of Oxygen

You will find the new engine in the Custom Validation Engines list in the toolbar. It's the combo toolbar button with an icon showing a red checkmark with an ellipsis(...) on top.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply