Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Search first/last name with form web part & xslt variables not working

Avatar of IntercareSupport
IntercareSupport asked on
Web Languages and StandardsXMLMicrosoft SharePoint
5 Comments1 Solution604 ViewsLast Modified:
I am trying to make a form web part with 2 text boxes.  I want the first text box to be able to search by first name, and the second box to search by last name.  You will be able to use either or both boxes, and do wildcard searches.

The sample code below works for the "First_Name" text box, but I can't seem to figure out how to make it work with the "Last_Name" text box.  How do I make this happen?  The full code is attached.  Thanks.

I am using Sharepoint 2007 MOSS.
<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:variable name="searchcaps" select="translate($SearchTerm, $smallcase, $uppercase)" />

<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[contains(translate(@First_Name, $smallcase, $uppercase), $searchcaps)]"/>
Avatar of zephyr_hex (Megan)
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers