![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Selecting a node based on its text value >Thread Next - Re: Selecting a node based on its text value RE: Selecting a node based on its text valueTo: NULL Date: 11/8/2006 2:36:00 PM "TripleDiamonds" wrote: > if I have the following structure as my xml file > > <Items> > <Item> > <mytext>1</mytext> > <items> > </items> > </item> > <item> > <mytext>2</mytext> > <items> > <item> > <mytext>3</mytext> > <items></items> > </item> > <item> > <mytext>56</mytext> > <items></items> > </item> > <item> > <mytext>565</mytext> > <items></items> > </item> > <item> > <mytext>33</mytext> > <items></items> > </item> > </items> > </item> > <item> > <mytext>89</mytext> > <items></items> > </item> > > how would I select the item node that contained the mytext node where > the text is 565? is there a way to do this type of query? I have > seen examples where the user does it using an attribute but have been > unsuccessfull at finding an example where it is based on the text > inside the node..... > > any help would be appreciated. > where each item can contain an items collection within itself <xsl:for-each select="//Items/item[./mytext=565]"> > > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
