![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - keyword search using XSLT or MSXML [Thread Next] Re: keyword search using XSLT or MSXMLTo: NULL Date: 1/30/2008 8:09:00 AM "Vincent" <no@s...> wrote in message news:d70e39f9966b431b99bc598e6bfd8b54@n...... > Dear Sir, > > I need to do a Keyword search to filter my XML file, similiar as the SQL > SELECT ... LIKE '%keyword%' function. > > How can I do this by using XSLT or the MSXML component? > > regards, > > Vincent > > url:http://www.ureader.com/gp/1629-1.aspx You would have to show some of the XML you are intending to search but you can use contains as in: <xsl:apply-templates select="item[contains(@name, $searchTerm)]" /> to process all the item elements whose name attribute contains the chosen text. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
