I have the following XML:
<skills>
<level1 skillid="1">
<level2 skillid="20">
...
</skills>
<selected>
<row number=1>
<level1>1</level1>
<level2>30</level2>
...
</row>
</selected>
I'm using an apply templates for each <row> which creates a series of dropdowns for each skill level. The <selected> nodes indicate which, if any, dropdowns have been previously selected but is out of scope.
I'm using a test statement to compare the in-context skillid with the relevant value in <row> and appending SELECTED but it only takes the last <row>.
How do I refer to the node out of context but still relatively? I was thinking of variables but they would surely still be out of context?
Thanks in advance JeepStone
<skills>
<level1 skillid="1">
<level2 skillid="20">
...
</skills>
<selected>
<row number=1>
<level1>1</level1>
<level2>30</level2>
...
</row>
</selected>
I'm using an apply templates for each <row> which creates a series of dropdowns for each skill level. The <selected> nodes indicate which, if any, dropdowns have been previously selected but is out of scope.
I'm using a test statement to compare the in-context skillid with the relevant value in <row> and appending SELECTED but it only takes the last <row>.
How do I refer to the node out of context but still relatively? I was thinking of variables but they would surely still be out of context?
Thanks in advance JeepStone