How can I dynamically set the default namespace declaration of an XSLT transformation's output XML?

前端 未结 3 1449
长发绾君心
长发绾君心 2021-02-04 20:04

I can do it, but not for the default namespace, using the . If I try to do it for the default namespace:



        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 20:23

    Try this:

    
      my-computed-namespace
      
    
    

    Then you can call that like so:

        
          
        
    

    EDIT Or with a variable instead of a param:

      my-computed-namespace
      
        
           
        
      
    

    (no need to call templates with-param)

提交回复
热议问题