Posted: 2012-07-16 11:57 |
If you have a long word without spaces and put it in a table cell it might overflow the available space. The fix is to introduce "invisible spaces" between the characters of the value. Let's say you have a field called cf_customer_invoice_line_item_po_number. You would normally reference the field as shown below:
<xsl:value-of select="cf_customer_invoice_line_item_po_number"/>
Instead use this:
<xsl:call-template name="intersperse-with-zero-spaces">
Also, add the following XSL template to the end of your XSL template file:
<xsl:template match="text()"> <xsl:if test="string-length($str) > 0"> <xsl:value-of select="$c1"/> <xsl:call-template name="intersperse-with-zero-spaces"> |