Lowercase conversion in XSL

前端 未结 2 830
花落未央
花落未央 2021-01-18 15:24

I have an XML like



 Jack
 Dawson



        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 15:54

    To convert a string to lower case or uppercase you can use the XPath 1.0 function translate:

    First define your alphabets for lower case and upper case letters. Note that the position of each pair of characters needs to be the same:

    abcdefghijklmnopqrstuvwxyz
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    

    Then you can convert to upper case:

    
    

    or to lower case

    
    

提交回复
热议问题