display xml elements in html table cells using XSLT
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 12
- Joined: Sun Oct 16, 2005 5:09 pm
display xml elements in html table cells using XSLT
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.
<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.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service