Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSLT question: How to lookup another tag's children in XSLT >Thread Next - Re: XSLT question: How to lookup another tag's children in XSLT Re: XSLT question: How to lookup another tag's children in XSLTTo: NULL Date: 10/1/2006 12:10:00 PM Joe Kesselman wrote: > yinglcs wrote: > Roy: you might want to look up the description of named > templates, since you're off-base on that point. Thanks for the pointer, I'm just starting with XSLT myself. (I have a feeling I'm going to need it soon, so I'm trying to be prepared ahead of time.) > > <?xml version="1.0" encoding="UTF-8"?> > > <root> > > . . . > > <features> > > . . . > > </features> > > </root> > > > > 2. Why this does not match anything? I expect this will > > loop thru each children of "features" and call the name > > template 'feature'. But apparently, I did something > > wrong. > > <xsl:template match="/features"> > > /features matches <features> if and only if it's the > outermost element (child of root). Get rid of the /. Oh, I completely missed that. That's the problem with the XSLT I posted, too. It works (sort of), but the first template doesn't actually match anything because of this bug. -- roy axenov | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
