Converting to text to lowercase in nodes and child nodes in xsl

后端 未结 4 1864
忘掉有多难
忘掉有多难 2021-01-20 17:53

Using xsl 2.0 I\'m trying to convert all uppercase text to having only the first letter of text in each node upper-case. Their are a large number of possible child elements.

4条回答
  •  清酒与你
    2021-01-20 18:13

    This might help you get part of the way.

    
      
    
    
    
      
        
      
    
    

    Not sure about the third "BLAH" though, this text() node starts with a space so there will be some increased difficulty in getting sibling text nodes capitalisation correct. Uncomment the "x" element to see this. You might also want to look at normalizing spaces and the position() function to get further.

提交回复
热议问题