0
我拉我的頭髮以找到此代碼中的錯誤,我的表列正在切割成兩行,但我想在單行顯示列數據。同樣的表格用於在其他Senario中顯示數據並正常工作。我相信列數據「數據不可用」將內容分成兩行,任何輸入都將非常有幫助。在XSL中的表列拆分問題
<table style="width=73%;table-layout:auto" border="0" white-space-collapse="false" wrap-option="no-wrap" white-space="nowrap">
<xsl:for-each select="webpage/param">
<tr>
<xsl:if test="@type !='i'">
<td class="rowBlue">
<xsl:if test="@indent !=''">
<!-- Generate the appropriate number of indentation -->
<xsl:variable name="count" select="@indent"/>
<xsl:for-each select="(//*)[position()<=$count]">
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:if>
<xsl:choose>
<xsl:when test="@isBold='1'">
<strong><span id="{position()-1}{@nameStrID}"><xsl:value-of select="@name"/></span></strong>
</xsl:when>
<xsl:otherwise>
<span id="{position()-1}{@nameStrID}"><xsl:value-of select="@name"/></span>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
</td>
</xsl:if>
是 「數據沒有」 後插入一個BR標籤?你可以嘗試添加CSS「white-space:nowrap;」到運輸署,看看是否有幫助。 –
我試過,但沒有得到水果 – Sijith