## May 27, 2008

### Use Saxon for XSL transformation in NetBeans

We can configure NetBeans so it will use the Saxon XSLT parser for XSL transformations. Transformations can be done easily by right-clicking on a XML or XSL file and selecting the XSL transformation... option. To make sure the Saxon XSLT parser is used we must add the Saxon classes to the classpath of NetBeans. We do this by using the --cp:p startup parameter. If for example we put the saxon9.jar file in the lib directory of NetBeans we can use the following parameter: --cp:p ..\lib\saxon9.jar. Because the saxon9.jar is first in the classpath it will be loaded before the default XSLT parser of NetBeans.