【发布时间】:2016-02-08 11:58:25
【问题描述】:
使用 XML:
<Table>
<Row id=1>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
<Row id=2>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
</Table>
如何在最后添加新的 Row 元素并使用 XSLT 1.0 增加 id 属性?源 XML 可以有任意数量的 Row 元素。
<Table>
<Row id=1>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
<Row id=2>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
<Row id=3>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
<Row id=4>
<Col1>...</Col1>
<Col2>...</Col2>
</Row>
</Table>
【问题讨论】: