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]
Other format: [Raw text]

Re: Wild Card Search


On Sunday 17 February 2002 12:38, Kunal H. Parikh wrote:
> Thanks for the help jeni !
>
> One more Q. Is there a way i could "ignore-case" ?
>
>
> Thanks,
>
> Kunal

Not with XSLT/XPath 1.0.  I believe there is an xf:lower-case function in 
XPath 2.0.  For now you need to use an extension function, or, if you are 
absolutely positive that you are only using only English ASCII letters, do 
something like

<xsl:for-each select="TAP/TutorialList/Tutorial[DifficultyLevel[contains(
                      translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                   'abcdefghijklmnopqrstuvwxyz'),
                      'inne')]]">

-- 
Peter Davis
Virtue does not always demand a heavy sacrifice -- only the willingness
to make it when necessary.
		-- Frederick Dunn

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]