Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT 2.0 in Eclipse without additional library?

Tags:

eclipse

xslt

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

like image 474
Andy Avatar asked Oct 10 '11 22:10

Andy


People also ask

How do you do XSLT transformation in Eclipse?

In the Project Explorer, simply select the input XML file and the stylesheet(s) to transform it, and then right-click and select Run As > XSL Transformation . If only the XSL Stylesheet is selected then a dialog box will prompt you for the input file to use.

How do I install XSLT?

Download the latest release. Clone the repo: git clone https://github.com/murrayju/xslt.git . Install with Bower: bower install xslt . Install with npm: npm install xslt .

Is XSLT obsolete?

The XslCompiledTransform class supports the W3C XSLT 1.0 recommendation. The XslTransform class is obsolete in . NET Framework version 2.0.


2 Answers

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

like image 98
Michael Kay Avatar answered Nov 07 '22 07:11

Michael Kay


  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
like image 4
Deepu Surendran Avatar answered Nov 07 '22 09:11

Deepu Surendran