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

How to make a like in XSL and use the containes command

Subject: How to make a like in XSL and use the containes command
From: "Deloyer Nicolas" <sky03393@xxxxxxxxx>
Date: Mon, 24 Apr 2000 17:06:49 -0700
command like in xsl
I want to make in a loop(xsl:for-each select ) a like.
I've seen that there is a command "containes(string,searchValue)"

But i don't know how to use this command in the code.

Please can somebody send me a sample of an xsl file with this command.
I've try this command in the following code but nothing happened:
 
  <?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <xsl:template match="/">
  <TABLE BORDER="1">
  <TR CLASS="TableHeader">
   <TD>My staff member</TD>
   <TD>Initials</TD>
   <TD>Mobile</TD>
  </TR>
  <xsl:for-each select="MYSTAFF/MEMBER[FNAME containes(FNAME,'Nic')" ORDERED="FNAME">
  <TR CLASS="TableCell">
   <TD>
    <xsl:value-of select="FNAME" />
    <xsl:value-of select="LNAME" />
   </TD>
   <TD>
    <xsl:value-of select="INITIALS" />
   </TD>
   <TD>
    <xsl:value-of select="MOBILE" />
   </TD>
  </TR>
  </xsl:for-each>
    </TABLE>
   </xsl:template>
</xsl:stylesheet>
 

Help me please....
 
 
Nicolas.



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.