• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

XSL nested looping to format HTML table????

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirement for this table is much similar to writing each of header record(i,e Score) and the detail line items with its label written after the end of inner loop which is <scorefac>.
XMLFILE to be parsed:
<SCORE SCOREID="SCR0001" Repository="Eqx"ScoreModelNameType="EqxBea"
BORROWERIDREFS="BORW02">
<ScoreValue>00623</ScoreValue>
<SCOREFAC>
<ScoreFacId>00038</ScoreFacId>
<ScoreFacDes>SCORE TEXT NOT PRESENT</ScoreFacDes>
</SCOREFAC>
<SCOREFAC>
<ScoreFacId>00014</ScoreFacId>
<ScoreFacDes>LENTH OF TIME ACC HAVE BEEN
ESTABLISHED
</ScoreFacDes>
</SCOREFAC>
</SCORE>
<SCORE SCOREID="SCR0002" Repository="Exp"ScoreModNam="ExpIss"BORROWERIDREFS="BORW01">
<ScoreValue>0569</ScoreValue>
<SCOREFAC>
<ScoreFacId>40</ScrFacId>
<ScoreFacDes> NUMBER OF ACCTS </ScoreFacDes>
</SCOREFAC>
<SCOREFAC>
<ScoreFacId>18</ScoreFacId>
<ScoreFacDes>NUMBER OF ACCTS NOT PAID AS
AGREED
</ScoreFacDes>
</SCOREFAC>
</SCORE>
Resultant HTML table to be built by XSL :
ScoremodelnameScorevalueRepository
EqxBea 00623 Eqx
ScorefacIdScorefacdes >>>>>>>>Detail record labels
40number of accts >>>>>detail records which are repetative
18number of accts
Pls suggest me how to do looping in XSLT for the above scenarios..
Regards
Mike
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!