[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Byomokesh,
Did you miss the original answers you received a couple of weeks back, where you asked exactly the same question? http://www.stylusstudio.com/xsllist/200701/post30500.html
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:
Re: [xsl] Problem in Poem
Subject: Re: [xsl] Problem in Poem From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 07 Feb 2007 13:50:32 +0100 |
Byomokesh,
Did you miss the original answers you received a couple of weeks back, where you asked exactly the same question? http://www.stylusstudio.com/xsllist/200701/post30500.html
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">
<poem> <xsl:for-each select="tokenize(., '
')"> <xsl:text>
</xsl:text> <xsl:analyze-string select="normalize-space(.)" regex=".{{1,80}}(\s|$)">
<xsl:matching-substring> <line><xsl:value-of select="."/></line> </xsl:matching-substring> <xsl:non-matching-substring> <xsl:value-of select="."/> </xsl:non-matching-substring> </xsl:analyze-string>
</xsl:for-each> </poem> </xsl:template>
In my XSL files output only line coding. But I m not success to stanza coding. anyone help
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem in Poem, Michael Kay | Thread | [xsl] complex table header, Angela Williams |
Re: [xsl] Checking a parent's attri, Nicholas Orr | Date | Re: [xsl] Newbie question on XSL tr, Owen Rees |
Month |