Here's what I have.
Receving applications. Each XML file will contain multiple applications for the same person. Each Application can contain multiple
XML file will look something like.
Unfortunately I can't change this much becuase of the feed we are getting from the source. A single event can have multiple reason codes, but I in the DB they will be stored in the same row with the event code being duplicated, while the reason code will be unique. (They will be selected by the app ID, which will be unique but that's higher up the chain).
What I need to do is make a display like
ApplicationID AppDate Time
EventCode EventDesc Date Time
ReasonCode ReasonDesc
ReasonCode ReasonDesc
ReasonCode ReasonDesc
EventCode EventDesc Date Time
I have looked at doing the xsl:apply-templates option, but it will iterate over a template identified by a element. I don't know how to get it to realize that subsequenct iterations over the same event (same event code and app ID) need to be displayed differently.
Any ideas?
Receving applications. Each XML file will contain multiple applications for the same person. Each Application can contain multiple
XML file will look something like.
Code:
<application>
<event>
<event_code>1</event_code>
<event_desc>Rejected</event_desc>
<reason_code>1</reason_code>
<reason_desc>Missing Name</reason_desc>
</event>
<event>
<event_code>1</event_code>
<event_desc>Rejected</event_desc>
<reason_code>2</reason_code>
<reason_desc>Missing Address</reason_desc>
</event>
<event>
<event_code>1</event_code>
<event_desc>Rejected</event_desc>
<reason_code>3</reason_code>
<reason_desc>Missing Phone</reason_desc>
</event>
<event>
<event_code>1</event_code>
<event_desc>Rejected</event_desc>
<reason_code>4</reason_code>
<reason_desc>Missing State</reason_desc>
</event>
<event>
<event_code>2</event_code>
<event_desc>Received</event_desc>
<reason_code>000</reason_code>
<reason_desc>None</reason_desc>
</event>
</application>
Unfortunately I can't change this much becuase of the feed we are getting from the source. A single event can have multiple reason codes, but I in the DB they will be stored in the same row with the event code being duplicated, while the reason code will be unique. (They will be selected by the app ID, which will be unique but that's higher up the chain).
What I need to do is make a display like
ApplicationID AppDate Time
EventCode EventDesc Date Time
ReasonCode ReasonDesc
ReasonCode ReasonDesc
ReasonCode ReasonDesc
EventCode EventDesc Date Time
I have looked at doing the xsl:apply-templates option, but it will iterate over a template identified by a element. I don't know how to get it to realize that subsequenct iterations over the same event (same event code and app ID) need to be displayed differently.
Any ideas?