Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: apply-templates problem [Thread Next] Re: apply-templates problemTo: NULL Date: 4/30/2009 9:35:00 AM Thanks - perfect solution. Regards, Mark On Apr 30, 4:11=A0am, "Joe Fawcett" <joefawc...@newsgroup.nospam> wrote: > I think you just need to stop using absolute paths and switch to relative > ones (i.e. remove the leading /). For example when you have matched /FORM= S > you then use /FORMS/FORM to access the FORM elements. As the context node= is > already FORMS you just need this path to be: FORM. > > -- > > Joe Fawcett (MVP - XML) > > http://joe.fawcett.name > > "gman" <markgravityg...@gmail.com> wrote in message > > news:c488bc8c-c0d8-44de-bbb5-2a641d9d2a90@y...... > > > > > Newbie: Hi all, > > > I have the following original basic xml > > > <FORMS> > > =A0<PROCS> > > =A0 =A0 =A0... > > =A0 <DIAGS> > > =A0 =A0 =A0... > > =A0 <FORM> > > =A0 =A0 =A0.... > > =A0 </FORM> > > =A0 <FORM> > > =A0 =A0 =A0 ... > > =A0 </FORM> > > </FORMS> > > > The Original xsl: > > > =A0<xsl:template match=3D"/FORMS"> > > =A0 =A0<xsl:apply-templates select=3D"/FORMS/FORM" /> > > =A0</xsl:template> > > =A0<xsl:template match=3D"/FORMS/FORM"> > > =A0 =A0 =A0 .... > > =A0 =A0 <xsl:apply-templates select=3D"/FORMS/PROCS" /> > > =A0 =A0 <xsl:apply-templates select=3D"/FORMS/DIAGS" /> > > =A0</xsl:template> > > =A0<xsl:template match=3D"/FORMS/PROCS"> > > =A0 =A0... > > </xsl:template> > > =A0<xsl:template match=3D"/FORMS/DIAGS"> > > =A0 =A0... > > </xsl:template> > > > ... > > > and so this basically renders each form with the same set of PROCS and > > DIAGS. What I need to do is to move the PROCS and DIAGS inside each > > form iteration, as they are now going to be different for each row of > > data of FORM. > > > How do I reference each FORM/PROCS and FORM/DIAGS for each individual > > row?- Hide quoted text - > > - Show quoted text - | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
