|
Subject: [xsl] Find second character in a string From: "Paulo Henrique S. Bermejo" <bermejo@xxxxxxxxxxx> Date: Fri, 31 Aug 2001 11:00:23 -0300 |
Hi Everybody,
Someone know if that function "contains" permitted to make to ask or to
especified if character repeat in a string?
Example:
I can know if repeat caracter ' ' (espace) in a string (Clark Jenier Foz)
this example exist 2 spaces in a string.
I need to make this because, I am making a script that get that last name
(in Brazil - "Foz") and converted to upper.
<xsl:choose>
<xsl:when test="contains(substring-after($var-nome-preparado, ' '), '
')">
<xsl:call-template name="upper-texto">
<xsl:with-param name="texto"
select="substring-after(substring-after($var-nome-preparado, ' '), ' ')"/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of
select="substring-before(substring-after(substring-after($var-nome-preparado
, ' '), ' '), ' ')"/>
</xsl:when>
</xsl:choose>
When a run this example it return me only string "FOZ" because
" <xsl:value-of
select="substring-before(substring-after(substring-after($var-nome-preparado
, ' '), ' '), ' ')"/> "
I see a ease resolution this, using scripts but I don't can to use.
Thanks for help!
Paulo Henrique Bermejo
Florianópolis/SC - Brazil.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Invoking a servlet with d, David Carlisle | Thread | [xsl] Find second character in a st, Paulo Henrique S. Be |
| AW: [xsl] Replacing all Occurences , Roger | Date | Re: [xsl] xsl-value-of does not pro, Thomas B. Passin |
| Month |