Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - =?iso-8859-1?q?parent::*/preceding-sib=ADling::tagname_VS_parent::preceding-sib=ADling::tagname?= [Thread Next] Re: =?ISO-8859-1?Q?parent=3A=3A*/preceding-sib=ADling=3A=3Atagna?= =?ISO-8859-1?Q?me_VS_parent=3A=3Apreceding-sib=ADling=3A=3Atagname?=To: NULL Date: 6/2/2005 7:10:00 PM KJ wrote: > I'd like to know what the difference is between these 2 expressions: > > parent::*/preceding-sibling::tagname > > VS > > parent::preceding-sibling::tagname > > That is to say: why is the */ necessary. parent is an axis, then you need a node test on that axis which * is (matches all element nodes). parent::preceding-sibling is not syntactically correct. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
