XSLT 2.0 in Eclipse without additional library?

后端 未结 5 1887
醉酒成梦
醉酒成梦 2021-01-20 09:13

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

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 09:25

    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.

提交回复
热议问题