XSL IF  and wrapping text

Larry Brister
Larry Brister used Ask the Experts™
on
My code below works nicely...except I can't force the text wrap

It just keeps pushing out to the right.

Any ideas?

<td colspan="2" Style="width:450px !Important;text-wrap: unrestricted; height:40px;">
    <xsl:for-each select="EMRecExperience/EMRec">
        <xsl:if test="not(position() = 1)">
            <xsl:text>,&#160;</xsl:text>
        </xsl:if>
        <xsl:value-of select="."/>
    </xsl:for-each>
</td>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
&#160; is a non-breaking space which makes all the output a single non breakable line.
If you replace &#160; with just regular space, the browser will break the line.

If you need to break line say, every 10 or so items, you need more complex solution.
Larry Bristersr. Developer

Author

Commented:
Perfect...thanks.
Starting to get my head around XML/XSL.  Been primarily SQL and VB programmer with literaly NO XSL over the years.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial