Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Test for siblings [Thread Next] Re: Test for siblingsTo: NULL Date: 8/1/2005 8:40:00 AM Thanks again, Bjoern, for your expertise. You've been a great help. :-) Bjoern Hoehrmann wrote: > * Roshawn Dawson wrote in microsoft.public.xsl: > >>I am currently processing the Authors node in an xml file using xsl. I >>would like to test to see if a particular node exists as a sibling of >>the Authors node. How do I do this? > > > <xsl:if test = 'preceding-sibling::...'> and/or > <xsl:if test = 'following-sibling::...'> > > where the ... is what you are looking for, e.g. preceding-sibling::x > would check for an element "x" in no namespace. See also the XPath > specification, <http://www.w3.org/TR/xpath#axes>. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
