how to include script tag in an xsl file?

前端 未结 7 2078
遥遥无期
遥遥无期 2021-02-14 13:08

I\'m working on an old site that uses java and xsl. How can I inculde a script file in an xsl file? Top of the file:



        
7条回答
  •  广开言路
    2021-02-14 14:08

    EDITED

    Here is a solution that works

    Assuming this is your xsl and you are including xsl as you mentioned. In this case I called it include.xsl. I just call a template called headers that pipes out the javascript reference.

    Main XSLT File:

    
    
        
    
        
            
            
               
            
        
    
    

    include.xsl

    
    
       
            
       
    
    

    Output:

    
    
    
                                     
                  
提交回复
热议问题