![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xpath ancestors >Thread Next - Re: xpath ancestors Re: xpath ancestorsTo: NULL Date: 1/10/2008 5:59:00 PM Chuck Jungmann wrote: > <xsl:template match="node()" mode="nameNode"> Note that node() does _not_ match the root node so you need <xsl:template match="/ | node()" mode="nameNode"> here. > <xsl:template match="node()" mode="makePath"> Same here <xsl:template match="/ | node()" mode="makePath"> Otherwise the default template would kick in which processes the child nodes of the root node and that way you don't get the results you are looking for and even recursion in the latter case. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
