cotec
08-09-2005, 05:16 PM
I have 2 XML documents that differ by a single type of node. In one of the documents, I have a <Score> node within a <Student> node. In the other doc, I have a <Complete> node withing the Student.
I know I need to use the <xsl:if> tag to check for these items, but how do I check for the node's name instead of the attribute? I know beforehand that the Student node will have one of the 2 options, but not both.
Thank you in advance,
Chris
Here is a small snippet of how each XML file looks:
<Report>
<Student>
<Name>Cote, Chris</Name>
<Score>86</Score>
</Student>
<Student>
<Name>Doe, John</Name>
<Score>79</Score>
</Student>
</Report>
And the 2nd document:
<Report>
<Student>
<Name>Cote, Chris</Name>
<Complete>True</Complete>
</Student>
<Student>
<Name>Doe, John</Name>
<Complete>False</Complete>
</Student>
</Report>
I know I need to use the <xsl:if> tag to check for these items, but how do I check for the node's name instead of the attribute? I know beforehand that the Student node will have one of the 2 options, but not both.
Thank you in advance,
Chris
Here is a small snippet of how each XML file looks:
<Report>
<Student>
<Name>Cote, Chris</Name>
<Score>86</Score>
</Student>
<Student>
<Name>Doe, John</Name>
<Score>79</Score>
</Student>
</Report>
And the 2nd document:
<Report>
<Student>
<Name>Cote, Chris</Name>
<Complete>True</Complete>
</Student>
<Student>
<Name>Doe, John</Name>
<Complete>False</Complete>
</Student>
</Report>