Optional parameters when calling an XSL template

前端 未结 4 1489
广开言路
广开言路 2021-02-18 14:36

Is there way to call an XSL template with optional parameters?

For example:


  

        
4条回答
  •  佛祖请我去吃肉
    2021-02-18 15:04

    Personally, I prefer doing the following:

      
       
          fooValue
       
    

    I like using explicitly with text so that I can use XPath on my XSL to do searches. It has come in handy many times when doing analysis on an XSL I didn't write or didn't remember.

提交回复
热议问题