XSLT 2.0 in Eclipse without additional library?

后端 未结 5 631
日久生厌
日久生厌 2021-01-20 09:16

Is it possible to perform XSLT 2.0 transformation in Eclipse without additional library (AltovaXML, Saxon)?

5条回答
  •  粉色の甜心
    2021-01-20 09:22

    Answer: NO, as already stated by others.
    But it is also important to specifying the use of XSLT 2.0 instead of 1.0 (otherwise I got the error "javax.xml.transform.TransformerFactoryConfigurationError: Provider com.icl.saxon.TransformerFactoryImpl not found").
    Using XSLT 2.0 with saxon can e.g. be achieved by:

    1. Download Saxon (e.g. from http://saxon.sourceforge.net/) and extract files locally
    2. In eclipse choose "Window > Preferences" then "XML > XSL > Java Processors > Add"
    3. Fill in a "Processor Name", e.g. "Saxon XSLT 2.0"
    4. In field "Processor type" choose "Saxon (XSLT 2.0)" !!
    5. Choose "Add external jar" and choose your saxon jar, e.g. "saxon9he.jar"
    6. Confirm by clicking "OK" etc

    Now you can use saxon for XSLT 2.0 transformations in Eclipse.

提交回复
热议问题