Create generic XSL Template to create table
I want a construct a dynamic table using XSLT template, I want the template to be generic. I want to pass column headers and the child nodes from which the column values to be selected. I'm able to pass the repeating element (e.g.) <People> dynamically and loop through the same, but I'm not able to pass nodes name and Title dynamically, I have to hardcode them in template....if I can pass this as generic, then I can use this template for any 2-columned table.
I'm using <xsl:with-param> to pass the repeating element, but when I use the same for child nodes also, it is not going to the appropriate child node of the parent context node.
Can you please help me with this one.
Requirement: One template should help me convert both the XML's, into a table.
<Name> ABC </Name><Title> Analyst</Title>
<People><Name> GHI </Name><Title> Manager </Title>
<Name> XYZ </Name><Title> CEO </Title>
<Name> MNO </Name><Title> CFO </Title>