Subject: [xsl] Regex Expression Problem From: "Byomokesh" <bkesh@xxxxxxxxxxxxxxx> Date: Wed, 24 Jan 2007 16:27:20 +0530 |
Hi All, I am facing Regex problem. Here is my input, output and Stylesheet. My Input ======= <P>Todo pasa y todo queda, pero lo nuestro es pasar, pasar haciendo caminos, caminos sobre el mar. Nunca persequ la gloria, ni dejar en la memoria de los hombres mi canción; yo amo los mundos sutiles, ingrvidos y gentiles, como pompas de jabn. </P> I Need Output ============= <poem> <stanza> <line>Todo pasa y todo queda,</line> <line>pero lo nuestro es pasar,</line> <line>pasar haciendo caminos,</line> <line>caminos sobre el mar.</line> </stanza> <stanza> <line>Nunca persequ la gloria,</line> <line>ni dejar en la memoria</line> <line>de los hombres mi cancin;</line> <line> yo amo los mundos sutiles, </line> <line> ingrvidos y gentiles, </line> <line> como pompas de jabn. </line> </stanza> </poem> My XSL ====== <xsl:template match="P"> <xsl:analyze-string select="." regex="[^-a-z]+.[a-z] "> <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:template> My output is not properly. I am missing in regex expression. Please any advice how catch every line and enter space. Thanks and Regards Byomokesh
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Output multiple files wit, Florent Georges | Thread | Re: [xsl] Regex Expression Problem, Alexey Nickolaenkov |
Re: [xsl] Backtracking and eternal , Abel Braaksma | Date | Re: [xsl] Regex Expression Problem, Alexey Nickolaenkov |
Month |