This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Conditional display of dates
- From: "Katie McNally" <kmcnally9 at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 19 Dec 2001 13:40:01 -0600
- Subject: [xsl] Conditional display of dates
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am trying to display a date. I need to display the "Original Date" if it
is returned. If a Record with Name = ORIGINAL does not exist or the record
with Name = ORIGINAL exists but a date for that record does not, I need to
display the "Copy Date" (Name = COPY). I am having difficulty doing this.
When I try to write the XSL, I either end up displaying no date or two
dates, so I know that it is not correct. Any suggestions?
Here is my xml:
<RecordSet>
<Record>
<Name>ORIGINAL</Name>
<RecordHistorySet>
<RecordHistory>
<Date>14-Apr-2001</Date>
</RecordHistory>
</RecordHistorySet>
</Record>
<Record>
<Name>COPY</Name>
<RecordHistorySet>
<RecordHistory>
<Date>17-Apr-2001</Date>
</RecordHistory>
</RecordHistorySet>
</Record>
<Record>
<Name>HARDCOPY</Name>
<RecordHistorySet>
<RecordHistory>
<Date>15-Apr-2001</Date>
</RecordHistory>
</RecordHistorySet>
</Record>
</RecordSet>
Thanks,
Katie
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list