xsl: how to use parameter inside “match”?

后端 未结 4 1154
南旧
南旧 2020-12-11 08:01

My xsl has a parameter


I want to use it inside match



        
4条回答
  •  情歌与酒
    2020-12-11 08:46

    Well, you could use a conditional instruction inside the template:

    
      
        .. do something
      
    
    

    You just need to be aware that this template will handle all elements that satisfy the first condition. If you have a different template that handles elements that match the first, but not the second, then use an , and put the other template's body in the block.

    Or, XSLT2 can handle it as is if you can switch to an XSLT2 processor.

提交回复
热议问题