xsl-list
[Top] [All Lists]

RE: If a Character exists

2005-03-30 17:30:46
Hi Spence,

Use the function contains(value, substring). Result: true or false.

Cheers,
<prs/>

-----Original Message-----
From: Spencer Tickner [mailto:spencertickner(_at_)gmail(_dot_)com] 
Sent: Wednesday, March 30, 2005 6:19 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] If a Character exists

Hi everyon, and thanks for the help again,, on what I thought would be a
simple, simple problem.

All I need to do is test if a character (specifically a period) exists in a
string

ie

<xsl:template match="AAA">
    <!--- If a period exits -->
    <p class="dindent"><xsl:value-of select="AAA"/></p>
    <!-- If a period does not exist -->
    <p class="indent"><xsl:value-of select="AAA"/></p> </xsl:template>

Sorry, it does seem like a really simple question, but google wasn't be good
to me today.

Thanks for the help,

Spence

--~------------------------------------------------------------------
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>