开发者

Manipulate String In XSL

开发者 https://www.devze.com 2023-03-13 00:33 出处:网络
I have a string variable in xsl - I want to be able to get the first chara开发者_C百科cter in that string. Is there a sort of \"cut\" method that I can use to retrieve this value? <xsl:value-of sel

I have a string variable in xsl - I want to be able to get the first chara开发者_C百科cter in that string. Is there a sort of "cut" method that I can use to retrieve this value?


 <xsl:value-of select="substring($string,1,1)"/>


Yes, see the example usage of substring here: http://msdn.microsoft.com/en-us/library/ms256054.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消