Manipulate String In XSL
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
精彩评论