How to execute XSLT 2.0 with ant?

前端 未结 6 1115
醉话见心
醉话见心 2020-12-01 11:38

I\'m trying to run an XSLT transformation from an ant file.

I\'m using a XSLT 2.0 stylesheet with a saxon 9 parser (supporting XSLT 2.0).

The problem is that

6条回答
  •  半阙折子戏
    2020-12-01 12:01

    EDIT: Dr. Michael Kay has pointed out that the AntTransform is no longer supported, nor recommended.

    Create a taskdef from the Saxon AntTransform class:

      
    
       
       
    


    I have begun using the standard task with the saxon jar specified in a , but had been running into performance issues. It seemed to "hang" for a bit when the task was called. I have found that adding processor="trax" and specifying helps it run much faster.

     
           
           
       
    

提交回复
热议问题