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]

Building an HTML Table


I have an XML file which I need to build an HTML table
based on the nodes returned.

Here is an example XML file:

Any number of auto elements will come back after a
search I need to insert each <make> inside a TD with a
max of 8 colums.  So after the 8th auto/make element
how do you start a new row without knowing the fixed
number of auto/make elements.  I need to repeat this
process until all TD have been filled.

<news>
    <auto>
	<make>Ford</make>
    </auto>
    <auto>
	<make>Jeep</make>
    </auto>
    <auto>
	<make>automaker3</make>
    </auto>
    <auto>
	<make>Mazda</make>
    </auto>
    <auto>
	<make>Saturn</make>
    </auto>
    <auto>
	<make>GM</make>
    </auto>
    <auto>
	<make>automaker7</make>
    </auto>
    <auto>
	<make>BMW</make>
    </auto>
   <auto>
	<make>Lexus</make>
    </auto>
</news>

thx for your help in advance

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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]