I'm working on something similar to this right now.
I have a sales document xml that might be output for various purposes, i.e.
order confirmation, packing list, invoice, customs declaration etc. Each
type of output document will have a different table column assortment.
If you can put the column information into the xml, something like this
<colunmns>
<col>Title 1</col>
<col>Title 2</col>
...
</columns>
Then you can just read all the <col> nodes and insert them into the table
(html-th or fo:table-header?).
In my case, I'm storing the column definitions in the stylesheet and
accessing the appropriate one based on the type of document output.
HTH,
Rick
-----Original Message-----
From: Tham Tinh [mailto:khautinh(_at_)yahoo(_dot_)com]
Sent: Monday, June 12, 2006 3:25 PM
To: XSL List
Subject: [xsl] Dynamic columns for xslt
Hello all,
I have a dump question please. Is there a way to
create a dynamic XSLT file? For example:
I have customers who will create xml file and the xml
will have dynamic columns. I like to build a xslt
file and can be fed the dynamic columns from those xml
files.
Thanks.
"It is essential to know that to be a happy person, a happy family, a happy
society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--