XSLT stylesheet parameters in imported stylesheets

后端 未结 4 2126
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 04:39

Is it possible to assign a value to a parameter of an imported stylesheet?

I was expecting something like


  

        
4条回答
  •  囚心锁ツ
    2021-02-19 05:34

    Try this:

    main.xsl

    
    
      
    
      
    
      
            
      
    
    
    

    import.xsl

    
      
    
      
    
      
            
      
    
    
    

    An xsl:variable in an importing stylesheet can override an xsl:param in an imported stylesheet, and this effectively sets the value of the parameter.

提交回复
热议问题