We have a list of X number of product elements which we want to display in two HTML table columns. The client wishes to have an even distribution of products in the first and second column. So if we have 4 product elements in the document they want 2 in one column and 2 in the other. If we have 3 product elements, 2 will go in one column and 1 in the other, etc...


Currently we have 2 product types, papers and DVDs and each type will have a separate table and columns. I'm currently using Xalan to grab each product type, creating an XML document, I then parse it using Xerces to grab the data I need, do some math to see how many elements are in the document and place the products in their appropriate columns.

So I have a working version but I'm wondering if Xalan can do this translation? If so do you have some simple examples for which we can start "fiddling" with?

Thank you for your help!
- John


Reply via email to