xsl-list
[Top] [All Lists]

[xsl] How to split text element to separate spans?

2010-06-06 10:42:48
Hi,
I have a problem splitting spans with text elements separated by br,
to different spans with br in between them.

Example Input:

<p dir="ltr"><span class="smaller">text1
            <br />
             text2
            text3.
            <br />
            </span> <span class="smalleritalic">no</span> <span
class="smaller">problems.
            <br />


            <br />
            </span></p>

Desired output:

<p dir="ltr"><span class="smaller">text1</span>
            <br />
             <span class="smaller">text2 text3.</span>
            <br />
            <span class="smalleritalic">no</span> <span
class="smaller">problems.</span>
            <br />
            <br />
            </p>
 Note: I need to create new span and preserve the span class when br
breaks inside a span.

Thanks for any idea.
Israel

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>