私は別のテーブルの行の間にテーブルを置こうとしています。他のテーブルの行の間のテーブル
しかし、私はいくつかの行の後にテーブルを置くと、元の行の形式が失われます。
どのようにこの問題を解決するか考えてください。 私のxsltの知識は少し限られています。
<table border="1">
<tr bgcolor="#006699">
<th ALIGN="LEFT">PCB Barcode</th>
<th ALIGN="LEFT">Date and Time</th>
<th ALIGN="LEFT">ProductPWI</th>
<th ALIGN="LEFT">Conveyor Speed</th>
</tr>
<xsl:for-each select="GeneralReflowProcessReport/Results/GeneralReflowProcessReportEntry/PcbInfo/PcbInfoEntries/PcbInfoEntry">
<tr>
<td style='padding:2px 100px 2px 2px'><xsl:value-of select="PcbBarcode"/></td>
<td style='padding:2px 20px 2px 2px'><xsl:value-of select="ReflowTime"/></td>
<td style='padding:2px 20px 2px 2px'><xsl:value-of select="ProductPWI"/></td>
<td style='padding:2px 20px 2px 2px'><xsl:value-of select="ConveyorSpeed"/></td>
</tr>
<xsl:if test="PcbStatistics/PcbStatisticsEntries">
<br/>
<table border="1" >
<tr bgcolor="#006699">
<th ALIGN="LEFT">Statistics Limits:</th>
</tr>
<tr>
<td style='padding:2px 100px 2px 2px'><xsl:value-of select="PcbStatistics/PcbStatisticsEntries/PcbStatisticsEntry/StatisticsName"/></td>
</tr>
</table>
<br/>
</xsl:if>
</xsl:for-each>
</table>
まずあなたが生成するために必要なものHTML決定し、それがブラウザで動作することを確認するとCSSで何かをします。次に、このHTMLを生成するためのXSLTコードの記述方法について考え始めます。 HTMLとXSLTの両方で未経験であるときに、両方を同時に実行しようとすると、混乱のレシピになります。 –