Page 1 of 1

Eclipse plugin and XSLTProc

Posted: Tue Dec 07, 2010 9:33 pm
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

Re: Eclipse plugin and XSLTProc

Posted: Wed Dec 08, 2010 3:38 pm
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

Re: Eclipse plugin and XSLTProc

Posted: Wed Dec 08, 2010 7:49 pm
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?

Re: Eclipse plugin and XSLTProc

Posted: Thu Dec 09, 2010 4:31 pm
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