[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: If a Character exists

Subject: RE: If a Character exists
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 30 Mar 2005 18:30:46 -0600
character exists
Hi Spence,

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

Cheers,
<prs/>

-----Original Message-----
From: Spencer Tickner [mailto:spencertickner@xxxxxxxxx] 
Sent: Wednesday, March 30, 2005 6:19 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.