Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 <xsl:template name="break">
    <xsl:param name="text" select="."/>
    <xsl:choose>
    <xsl:when test="contains($text, '&#xa;')">
       <xsl:value-of select="substring-before($text, '&#xa;')"/>
       <p/>
       <xsl:call-template name="break">
           <xsl:with-param name="text" select="substring-after($text,
 '&amp;#xa;')"/>
       </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
         <xsl:value-of select="$text"/>
    </xsl:otherwise>
    </xsl:choose>
 </xsl:template>

...