getting string-length of tokenized string
I'm trying to get the length of the current node in a tokenized string. What I'm attempting to do is capitalize each first letter and lowercase the rest of the string. I have no problem getting the length of the first via <!-- where the var is coming from --> <xsl:variable name="l_TempVar" select="tokenize($l_TempDateline, ' ')" /> <xsl:sequence select="concat(upper-case(substring($l_TempVar, 1, 1)), lower-case(substring($l_TempVar, 2, string-length($l_TempVar))))" /> but am having problems getting the length of any of the following items in the tokenized var. <xsl:sequence select="concat(' ', upper-case(substring($l_TempVar[.], 1, 1)), lower-case(substring($l_TempVar[.], 2, string-length(.))))" /> this complains that I'm calling in all the nodes in the tokenized string. Any insight will be appreciated. Marijan (Mario) Madunic
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format