This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building html table from atributes


Hi!

I have been given a challenge and I have no idea how to start 
solving it. I should build html table from xml file using 
xslt. The xml file would be similar to below: 

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?> 
<XDocument>
<XDocTemplate>111111aaaaaaa</XDocTemplate> 

<XDocCell row="1" col="1">
<XDocPretext>Text</XDocPretext> 
</XDocCell>

<XDocCell row="1" col="2">
<XDocPretext>Text</XDocPretext> 
</XDocCell>

<XDocCell row="1" col="3">
<XDocPretext>Text</XDocPretext> 
</XDocCell>

<XDocCell row="1" col="4">
<XDocPretext>Text</XDocPretext> 
</XDocCell>

<XDocCell row="2" col="1">
<XDocPretext>Text</XDocPretext> 
</XDocCell>

<XDocCell row="2" col="2">
<XDocPretext>Text</XDocPretext> 
</XDocCell>
</XDocument>

Now I should place the <XDocPretext> contents to different cell in the
table. The correct cell is indicated in the <XDocCell> attributes row and 
col. The table should always have four cell in a row, even if there 
is no content (eg. element for that cell in the xml file).

Please give me some hints how to start working with this.

Cheers 
Jarkko


****************************************************************
Jarkko Moilanen          "Erehtyminen on inhimillista, 
Researcher/ ITCM         mutta todella suuret mokat 
jm60697@uta.fi           vaativat tietokoneen käyttöä."         
www.uta.fi/~jm60697                                           
GSM: +358 50 3766 927                                         
****************************************************************
* ITCM | Information Technology and Crisis Management            
* http://www.itcm.org                                            
****************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]