Hi Guys,
We need a clue to break <preformat> into multiple paragraph. Using below xsl
we are not able to transform <bold>
Input
<preformat>
Line 1
Line <bold>2</bold>
Line 3
</preformat>
Required output
<programlisting>
<p>Line 1</p>
<p>Line <b>2</b></p>
<p>Line 3</p>
</programlisting>
XSL
<xsl:template match="preformat">
<programlisting>
<xsl:for-each-group select="." regex="[\n\r]">
<xsl:non-matching-substring>
<p><xsl:value-of select="."/></p>
</xsl:non-matching-substring>
</xsl:for-each-group>
</programlisting>
Thanks in advance
...JSR
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--