in XSLT v1 you need to use the translate() function, like
select="catalog/cd[transla
(and pass the $artist param in uppercase)
Main Topics
Browse All TopicsHi Guys,
I have some XSL that is searching an XML file based on artist name (please see code snippets), I want to bring back artist nodes regardless of case for example if the user enters the artist name as Bob Dylan or BOB DYLAN or bob Dylan it should still return back the same nodes, at present it will only return back the node if it is entered exactly as it appears in the XML file, is it possible to ignore case in XSL?
Thanks
Jay
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Jay,
XSLT2 has an upper-case() and a lower-case() function (actually XPath2 has)
In XSLT1, your only option is using a translate function
A translate function has three arguments
each character in the first argument that matches a character in the second argument at a certain position
will be replaced by the character at the same position in the third argument
that way, using the strings $lc and $uc, you can make an uppercase
thanks for the replies,
Gertone in your example this is working perfect but the XSL if statement is being returned also.....ive attached my form im using, basically i entered a Bob Dylan as Bob dylan and then another search Gary Moore as gary moore but the No Results Found is being returned along with the nodes ...is there anyway around this?
<xsl:if test="not(catalog/cd[artis
<tr bgcolor="red">
<td colspan="2">No Results Found</td>
</tr>
</xsl:if>
Business Accounts
Answer for Membership
by: GertonePosted on 2009-06-15 at 14:27:46ID: 24633217
Select allOpen in new window