Re: [xsl] Problem in Poem

Subject: Re: [xsl] Problem in Poem
From: Abel Braaksma <>
Date: Wed, 07 Feb 2007 13:50:32 +0100

Did you miss the original answers you received a couple of weeks back, where you asked exactly the same question?

Please follow-up with what the problems were with my, Michael's or Alex's solution. Did you try them? Little in your attempt below resembles their posts.

One question: looking at your code, you seem to try to select lines by position (i.e., fixed width matching). Why is that? It is usually better, with regular expressions to say what you do *not* wish to match. I.e., if you want to grab a line, specify all that is not a line: [^\n\r]+ etc.

-- Abel

Byomokesh wrote:
Here is my XSLT

<xsl:template match="P">

      <xsl:for-each select="tokenize(., '&#xA;')">
<xsl:analyze-string select="normalize-space(.)" regex=".{{1,80}}(\s|$)">

      <line><xsl:value-of select="."/></line>
        <xsl:value-of select="."/>


In my XSL files output only line coding. But I m not success to stanza coding. anyone help

Current Thread