Eclipse plugin and Saxon 7.x
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 4
- Joined: Sun Jul 04, 2004 7:42 pm
Eclipse plugin and Saxon 7.x
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:
I have tried:
set the TransformerFactory to
"net.sf.saxon.TransformerFactoryImpl"
anything else I could try?
Victor[/quote]
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
- 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>
set the TransformerFactory to
"net.sf.saxon.TransformerFactoryImpl"
anything else I could try?
Victor[/quote]
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
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:
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.
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>
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.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service