XSLT expression to check if variable belongs to set of elements

后端 未结 2 547
小鲜肉
小鲜肉 2020-12-15 18:16

I have code like this:

  

Is there any way to put this expression in a form, li

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 18:34

    XSLT / XPath 1.0:

    
    
    
    
      
    
    

    You can use other separators if needed.

    In XSLT / XPath 2.0 you could do something like:

    
    
    
      
    
    

    If you can use document structure to define your list, you could do:

    
    
    
    
      
    
      
      
        
      
    
    

提交回复
热议问题