これを手伝ってくれませんか。
私はこのようなテーブルを持っています:
<table>
<th style="text-align: left; text-transform: capitalize;">Unique</th>
<th style="text-align: left; text-transform: capitalize;">x1</th>
<th style="text-align: left; text-transform: capitalize;">y2</th>
<tr class="rowNormal">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
<tr class="rowAlternate">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
<tr class="rowNormal">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
</table>
私がする必要があるのは、それぞれの後に特定のHTMLを挿入し、そのtr
最後の値を使用してそのHTML内の変数を設定することです。つまり、上記のコードは次のようになります。td
tr
<table>
<th style="text-align: left; text-transform: capitalize;">Unique</th>
<th style="text-align: left; text-transform: capitalize;">x1</th>
<th style="text-align: left; text-transform: capitalize;">y2</th>
<tr class="rowNormal">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
<p>
<ac:macro ac:name="mymacro">
<ac:parameter ac:name="content">titles</ac:parameter>
<ac:parameter ac:name="labels">+VALUE_TD +othervalue</ac:parameter>
</ac:macro>
</p>
<tr class="rowAlternate">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
<p>
<ac:macro ac:name="mymacro">
<ac:parameter ac:name="content">titles</ac:parameter>
<ac:parameter ac:name="labels">+VALUE_TD +othervalue</ac:parameter>
</ac:macro>
</p>
<tr class="rowNormal">
<td nowrap="true">a1</td>
<td nowrap="true">b2</td>
<td nowrap="true">b3</td>
</tr>
<p>
<ac:macro ac:name="mymacro">
<ac:parameter ac:name="content">titles</ac:parameter>
<ac:parameter ac:name="labels">+VALUE_TD +othervalue</ac:parameter>
</ac:macro>
</p>
</table>
この例では、 VALUE_TD
3行すべてでb3に等しくなります。