任何人都可以幫助我進行以下轉換嗎?Xslt轉換 - 每個
這裏是XML
<Chart>
<Chart.Series>
<DataSeries LegendText="Complete On Time" >
<DataSeries.DataPoints>
<DataPoint AxisXLabel="Sep 09" YValue="10" />
<DataPoint AxisXLabel="Oct 09" YValue="11" />
<DataPoint AxisXLabel="Nov 09" YValue="12" />
</DataSeries.DataPoints>
</DataSeries>
<DataSeries LegendText="Complete Overdue" >
<DataSeries.DataPoints>
<DataPoint YValue="1" />
<DataPoint YValue="2" />
<DataPoint YValue="3" />
</DataSeries.DataPoints>
</DataSeries>
</Chart.Series>
</Chart>
,這裏是輸出ID喜歡
<table>
<thead>
<tr>
<th></th>
<th>Complete On Time</th>
<th>Complete Overdue</th>
</tr>
</thead>
<tbody>
<tr>
<th>Sep 09</th>
<th>10</th>
<th>1</th>
</tr>
<tr>
<th>Oct 09</th>
<th>11</th>
<th>2</th>
</tr>
<tr>
<th>Nov 09</th>
<th>12</th>
<th>3</th>
</tr>
</tbody>
@meboz:你嘗試過這麼遠嗎?你卡在哪裏? – 2009-10-20 22:50:11
@meboz:提供您的XSLT以獲得響應。如果你沒有任何XSLT,請他人爲你做這件事不會讓你多... – jro 2009-10-20 23:05:52
@jro:我不會問,如果我沒有給它一個去。 對於第一個系列中的每個數據點,我不知道如何索引到第二個系列中的數據點。 – boz 2009-10-21 00:44:38