![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - RE: Selecting a node based on its text value [Thread Next] Re: Selecting a node based on its text valueTo: NULL Date: 11/9/2006 11:24:00 AM "johns221b" <johns221b@d...> wrote in message news:FE4E50FD-9572-4A55-BA25-E8A58EE62C3F@m...... > > > "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]"> > select="//item[mytext='565']" | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
