pjc791
Programmer
- Aug 13, 2011
- 2
Hello,
I've got a nested for-each function in an XSL file, designed to run through a XML containing R's and C's (rows and Columns) and making a table out of the XML info. The code looks something like this with a nested for-each
<xsl:for-each select="r">
<tr>
<xsl:for-each select="c">
<td> - stuff - </td>
I need to pull attribute information from the partent r inside the <td> generated during the c element but I can't see to get the code correct.
Wondering if I should make a single element for each cell and somehow filter them out by attributes, or perhaps just including all the information in the c element that I need.
Sorry if this isn't clear but I don't have the code to post in full at the moment
I've got a nested for-each function in an XSL file, designed to run through a XML containing R's and C's (rows and Columns) and making a table out of the XML info. The code looks something like this with a nested for-each
<xsl:for-each select="r">
<tr>
<xsl:for-each select="c">
<td> - stuff - </td>
I need to pull attribute information from the partent r inside the <td> generated during the c element but I can't see to get the code correct.
Wondering if I should make a single element for each cell and somehow filter them out by attributes, or perhaps just including all the information in the c element that I need.
Sorry if this isn't clear but I don't have the code to post in full at the moment