XSLT/XPath : No upper-case function in MSXML 4.0?

前端 未结 2 1685
广开言路
广开言路 2021-01-06 11:31

I try to use upper-case() in an XPATH, my parser is MSXML 4.0, and I get :

upper-case is not a valid XSLT or XPath function.

Is it really

2条回答
  •  孤独总比滥情好
    2021-01-06 11:50

    There are no functions in xslt 1.0 to convert to uppercase or lowercase. Instead do the following:

    If it is required in a lot of places:

    Declare these two xsl variables (this is to make the xslt more readable)

    
      
      
    

    And use them in your translate function to change the case

    
    

    If you need to use it in just one place, no need to declare variables

    
    

提交回复
热议问题