Eclipse plugin and Saxon 7.x

Having trouble installing Oxygen? Got a bug to report? Post it all here.
vrvolle
Posts: 4
Joined: Sun Jul 04, 2004 7:42 pm

Eclipse plugin and Saxon 7.x

Post by vrvolle »

Hi

I am trying to use Saxon 7.x (7.9) with the Eclipse plugin.
I am using the new (XSLT 2.0) "xsl:result-document" feature.
But I am not able to get the new Saxon running, because
it always complains:

Code: Select all

   Unknown XSLT element: result-document
I have tried:
  • saxon7.jar in the "endorsed" directory of my Java Installation
  • adding saxon to the plugin lib directory of Oxygen (which should
    not work, because of the eclipse class loading algorithm).
  • manually adapt the plugin.xml:


    <library name="lib/saxon7.jar">
    <export name="*"/>
    <packages prefixes="net.sf.saxon"/>
    </library>
I have already set the configuration mechanism to "JAXP" and
set the TransformerFactory to

"net.sf.saxon.TransformerFactoryImpl"

anything else I could try?

Victor[/quote]
tavy
Posts: 388
Joined: Thu Jul 01, 2004 12:29 pm

Post by tavy »

Hi,

To configure Saxon 7.x in the Oxygen Eclipse plugin follow the next steps:

1. Copy saxon7.jar in [oxygen]/lib directory.
2. Edit pugin.xml from oxygen base directory and add the following lines:

Code: Select all


     <library name="lib/saxon7.jar">
<export name="*"/>
<packages prefixes="net.sf.saxon"/>
</library>
3. Delete all from [eclipse]/configuration directory (but not config.ini).
4. Restart Eclipse.
5. From the menu select Windows->Preferences. From the list of preferences dialog select Oxygen->XSL/FO->XSLT Option and from the list of preference categories select the JAXP XSLT Transformer option. Enter the name of the transformer factory,net.sf.saxon.TransformerFactoryImpl for Saxon 7.x, as the value of the JAXP property javax.xml.transform.TransformerFactory.
6. Click the OK button to save your changes.
7. Test the new XSLT transformer by configuring and running a transformation scenario using the JAXP transformer.

I'll write an article about how to Configure an External XSLT Transformer in Eclipse plugin.
Post Reply