This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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.
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |