I have 2 XML documents which differ by only a single node. In one of the documents, I have a <Complete> node within a <Student> node. In the other document, I have a <Score> node within the Student one. I currently have a for-each tag to loop through all the Student node, but I need to figure out how to use the xsl:if tag to determine whether the Student node contains a Score node or a Complete one.
I'm sure it's probably something very simple, but I can't figure out how to check for a specific node name.
Can someone please help me?
Chris
Here is a snippet of each document:
Code:
<Report>
<Module Name="modName">
<Student>
<Name>Doe, John</Name>
<Score>87</Score>
</Student>
...
...
</Report>
And the other document
Code:
<Report>
<Module Name="modName">
<Student>
<Name>Doe, John</Name>
<Complete>True</Complete>
</Student>
</Module>
...
...
</Report>
Basically, my question is: how do I code the xsl:if tag to check for the Complete or the Score tag?
Chris