Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Matching values of nodes to apply templates [Thread Next] Re: Matching values of nodes to apply templatesTo: NULL Date: 10/4/2004 9:25:00 AM dhepworth@b... (david hepworth) writes: > David Carlisle <davidc@n...> wrote in message news:<yg44qleo3nq.fsf@p...>... > > > I can apply the template to student 18 for event 1, how > > > do i then get the data for student 18 from event 2 and then for event > > > 3 and so on? > > > > <xsl:apply-templates select="event/student[code=18]"/> > > > > will apply templates to student elements with code=18 whatever event > > they are in. > > > > David > > Thanks for this. > > The problem that I can forsee with this is that i dont actually know > the students code. > I need to show a line of details for each student. There will be > different numbers of students with different codes per print out. > > Thanks > > David just replace the literal 18 in the code I posted with whatever code you need to calculate the value. (Or perhaps simpler calcualte teh value first in a variable, and use a variable reference instead of 18) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
