![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: use contains to search through multiple nodes. [Thread Next] Re: use contains to search through multiple nodes.To: NULL Date: 3/17/2008 5:18:00 PM
Guoqi Zheng wrote:
> Great! what about if the category node is under the node of <metadata>
> instead of directly under<agenda>? The agenda data can be something like
>
> -------------------------------------- <agenda>
> <id>1112</id>
> <data>
> <content>
> <title>this is the title # 2</title>
> </content>
> <ref>GT355-332-234</ref>
> </data>
> <metadata>
> <category>Finance</category>
> </metadata>
> </agenda>
Change
>> <xsl:apply-templates
>> select="/agendas/agenda[category =
>> $category]/data/content[contains(translate(.,$UC,$lc), $Keyword)]">
to
<xsl:apply-templates
select="/agendas/agenda[metadata/category =
$category]/data/content[contains(translate(.,$UC,$lc), $Keyword)]">
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
