xsl: how to use parameter inside “match”?

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

My xsl has a parameter


I want to use it inside match



        
4条回答
  •  轮回少年
    2020-12-11 08:40

    In XSLT 2.0 you can refer to global variables within a match pattern, but the syntax is simpler than your guess:

    
    

    rather than

    
    

    Also, the semantics are not what you appear to be expecting: a variable referenced on the lhs of "/" must contain a node-set, not a fragment of an XPath expression.

提交回复
热议问题