Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Test for siblings >Thread Next - Re: Test for siblings Re: Test for siblingsTo: NULL Date: 8/1/2005 3:14:00 PM * 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>. -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
