xsl-list
[Top] [All Lists]

Re: [xsl] How to split mixed content

2009-02-15 08:06:56
OK, thanks David

Updated template:

    <xsl:template match="p">
        <lines>
            <xsl:for-each-group select="node()" group-starting-with="br">
                <line><xsl:copy-of select="current-group() except
self::br"/></line>
            </xsl:for-each-group>
        </lines>
    </xsl:template>

Cheers,
Jesper Tverskov

--~------------------------------------------------------------------
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>