XSLT 2.0 in Eclipse without additional library?

后端 未结 5 630
日久生厌
日久生厌 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.

    0 讨论(0)
  • 2021-01-20 09:30

    The answer is No. You need to install an XSLT 2.0 processor such as Saxon.

    0 讨论(0)
  • 2021-01-20 09:30

    Not sure if this answers your question, but if you want to test your XSL stylesheets to see if they render your XML correctly, you have your choice:

    • Orangevolt XSLT
    • The built in XSLT features of the Eclipse Web Tools Project (WTP)
    0 讨论(0)
  • 2021-01-20 09:31
    1. Select XSLT file Run As -- Runconfiguration
    2. Create New configuration under XSL
    3. Select input file(test.xml) and transformation file (test.xslt)
    4. Select classpath tab and under user entries add external jar (Saxon-HE-9.5.0.1.jar)
    5. Select Output file from ouput tab
    0 讨论(0)
  • 2021-01-20 09:32

    Check http://code.google.com/p/cakupan/

    you can find a eclipse debugger plugin for xsl 2.0

    Instructions to adapt it to eclipse kepler can be found at the forum, or at http://pjoseph.net/codecorner/2014/02/xsl-2-0-debugger-for-eclipse-kepler-with-saxon-he/

    0 讨论(0)
提交回复
热议问题