Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


apply-templates problem

From: gman <markgravitygood@-----.--->
To: NULL
Date: 4/29/2009 1:06:00 PM
Newbie: Hi all,

I have the following original basic xml

<FORMS>
  <PROCS>
      ...
   <DIAGS>
      ...
   <FORM>
      ....
   </FORM>
   <FORM>
       ...
   </FORM>
</FORMS>

The Original xsl:

  <xsl:template match="/FORMS">
    <xsl:apply-templates select="/FORMS/FORM" />
  </xsl:template>
  <xsl:template match="/FORMS/FORM">
       ....
     <xsl:apply-templates select="/FORMS/PROCS" />
     <xsl:apply-templates select="/FORMS/DIAGS" />
  </xsl:template>
  <xsl:template match="/FORMS/PROCS">
    ...
 </xsl:template>
  <xsl:template match="/FORMS/DIAGS">
    ...
 </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?


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent