Hi! my problem is this, I have an XMl document containing 2 people, tis is the loaded into a recordset. i wish to display in an HTMl table the persons "status History" this may be multiple historys as you can see from the XML below:
i can display the first status item using:
Please help!!
Kenneth Birney
User Interface Programmer
Scottish Police
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="ApplicationDetailsApplicant.xsl"?>
<details>
<ApplicationDetailsApplicant>
<SequenceID>1</SequenceID>
<ID>3676.000000</ID>
<ApplicationType>Shotgun</ApplicationType>
<CertificateNumberLabel/>
<Status>46.003000</Status>
<Reason/>
<DateReceived>01/05/2001</DateReceived>
<DateAccepted/>
<DateAppliedFor/>
<Comments>1057</Comments>
<AppealLodged>false</AppealLodged>
<AppealUpheld>false</AppealUpheld>
<AppliedForCoterminous>false</AppliedForCoterminous>
<NameLabel>Willy Jackson-Brown</NameLabel>
<DateOfBirthLabel/>
<AddressLabel>132, Any Old Way, Edinburgh, Lothian</AddressLabel>
<StatusBox>
<SharedBy>
<StatusDateLabel>12/03/2002</StatusDateLabel>
<StatusLabel>Application Received</StatusLabel>
<StatusReasonLabel/>
<UserLabel>guest</UserLabel>
</SharedBy>
<SharedBy>
<StatusDateLabel>12/03/2002</StatusDateLabel>
<StatusLabel>Application Received</StatusLabel>
<StatusReasonLabel/>
<UserLabel>guest</UserLabel>
</SharedBy>
</StatusBox>
</ApplicationDetailsApplicant>
<ApplicationDetailsApplicant>
<SequenceID>2</SequenceID>
<ID>3673.000000</ID>
<ApplicationType>Firearm</ApplicationType>
<CertificateNumberLabel/>
<Status>46.003000</Status>
<Reason/>
<DateReceived>12/12/2001</DateReceived>
<DateAccepted>15/02/2002</DateAccepted>
<DateAppliedFor/>
<Comments/>
<AppealLodged>false</AppealLodged>
<AppealUpheld>false</AppealUpheld>
<AppliedForCoterminous/>
<NameLabel>Willy Jackson-Brown</NameLabel>
<DateOfBirthLabel/>
<AddressLabel>132, Any Old Way, Edinburgh, Lothian</AddressLabel>
<StatusBox>
<SharedBy>
<StatusDateLabel>15/02/2002</StatusDateLabel>
<StatusLabel>Approved</StatusLabel>
<StatusReasonLabel/>
<UserLabel>guest</UserLabel>
</SharedBy>
<SharedBy>
<StatusDateLabel>15/02/2002</StatusDateLabel>
<StatusLabel>Application Received</StatusLabel>
<StatusReasonLabel/>
<UserLabel>iplanet</UserLabel>
</SharedBy>
</StatusBox>
</ApplicationDetailsApplicant>
</details>
i can display the first status item using:
Code:
<xsl:for-each select="SharedBy">
<tr>
<td width="25%"><span datasrc= "#xmlData" datafld="SequenceID"></span></td>
<td width="25%"><span datafld="StatusLabel"></span></td>
<td width="25%"><span datafld="StatusReasonLabel"></span></td>
<td width="25%"><span datafld="UserLabel"></span></td>
</tr>
</xsl:for-each>
Please help!!
Kenneth Birney
User Interface Programmer
Scottish Police