display xml elements in html table cells using XSLT

Here should go questions about transforming XML with XSLT and FOP.
sujatha
Posts: 12

display xml elements in html table cells using XSLT

Wed Oct 19, 2005 5:47 pm

I have the following xml -->
<ELG-MONITOR_record>
<PREP_DATE>04/11/04</PREP_DATE>
<ASSOC_3-MV>
<ELG_STATUS>E</ELG_STATUS>
<ELG_MONTHS>3</ELG_MONTHS>
<ASSOC_3-MS>
<LOOKBACK_PERIODS>200304</LOOKBACK_PERIODS>
<LOOKBACK_AMOUNTS>75.00</LOOKBACK_AMOUNTS>
<ELG_PERIODS>200310</ELG_PERIODS>
<ELG_STATUS_BEFORE>NN</ELG_STATUS_BEFORE>
<ELG_STATUS_AFTER>YM1</ELG_STATUS_AFTER>
<LAG_PERIODS>200307</LAG_PERIODS>
</ASSOC_3-MS>
<ASSOC_3-MS>
<LOOKBACK_PERIODS>200305</LOOKBACK_PERIODS>
<LOOKBACK_AMOUNTS>34.00</LOOKBACK_AMOUNTS>
<ELG_PERIODS>200311</ELG_PERIODS>
<ELG_STATUS_BEFORE>NR</ELG_STATUS_BEFORE>
<ELG_STATUS_AFTER>YM1</ELG_STATUS_AFTER>
<LAG_PERIODS>200308</LAG_PERIODS>
</ASSOC_3-MS>
</ASSOC_3-MV>

Depending upon my LOOKBACK_PERIODS(xml element) in ASSOC_3-MS value I have to display them in a html table.
For ex:
In html table the first row is like "200301,200302, ..........200312"(depends on the xml values)
and in the second row

If LOOKBACK_PERIODS is "200304" get the month value(which is "04") and display it accordingly to the prevous row i.e below "200304(first row)" I have to display "LOOKBACK_AMOUNTS" value.

For ex
First Row = 200301 200302 200303 200304 200305 200306 200307 200308.....
sec row = 75.00 34.00

I am not able get any solution to this problem, and I am doing this in XSLT, if anybody has any possible solution let me know.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests