1. 程式人生 > >Tips: 解決XSLT中table內容換行問題

Tips: 解決XSLT中table內容換行問題

1. use CDATA contains the TEXT, like :
    <Details>
      <![CDATA[ Installation Kit <br/>
      This will prepare your computer for use]]>
    </Details>
  use <br/> to begin with new row.

2. XSLT content:
                <td>
                  <xsl:value-of select="Details" 
disable-output-escaping="yes" />
                </td>
put the disable-output-escaping property to "yes"

That is it. just try it again.