xsl-list
[Top] [All Lists]

Re: [xsl] getting string-length of tokenized string

2007-08-28 07:34:27
Sorry forgot,

it sits inside a for-each which contains a choose that tests for position

Marijan (Mario) Maudnic

Quoting Mario Madunic <hajduk(_at_)imag(_dot_)net>:

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, 1)),
lower-case(substring($l_TempVar[1], 2, string-length($l_TempVar[1]))))" />

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>