Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Matching values of nodes to apply templates

From: dhepworth@-------.--- (----- --------)
To: NULL
Date: 10/1/2004 8:24:00 AM
Hi All
I will try to explain my problem.

I am wishing to apply a template to the following XML.  There are
multiple event nodes within the register root node.  For each of the
event nodes there are a list of students taking the Event.  I wish to
apply a template (and thus get the data) for the same student across
the events.  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?

Many thanks in advance.

David


<register>
  <event>
    <code>1</code>
    <date>...</date>
     .
     .
    <room>...</room>
    <tutor>...</tutor>
    <student>
      <code>18</code>
      <name>Joe Bloggs</name>
       .
       .
    </student>
    <student>
      <code>19</code>
      <name>Janet Bloggs</name>
       .
       .
    </student>
  </event>
  <event>
    <code>2</code>
    <date>...</date>
     .
     .
    <room>...</room>
    <tutor>...</tutor>
    <student>
      <code>18</code>
      <name>Joe Bloggs</name>
       .
       .
    </student>
    <student>
      <code>19</code>
      <name>Janet Bloggs</name>
       .
       .
    </student>
  </event>
</register>


transparent
Print
Mail
Digg
delicious
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