Subject: Re: [xsl] match string From: Anton Triest <anton@xxxxxxxx> Date: Tue, 19 Oct 2004 11:56:35 +0200 |
I am trying to mach the first 3 words of a node
I can mach the first word, <xsl:value-of select="substring-before($string,' ')"/>
but how to match the other two?
The only thing sure is, that I have to mach the three spaces after the words.
<input> <para>A sentence begins with a number of words.</para> <para>Here's a paragraph with 6 words.</para> <para>Short paragraph</para> </input>
<output> <para><b>A sentence begins </b>with a number of words.</para> <para><b>Here's a paragraph </b>with 6 words.</para> <para><b>Short paragraph</b></para> </output>
Cheers, Anton
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] match string, Zsolt Szabó | Thread | Re: [xsl] match string, Anton Triest |
Re: [xsl] union vs. "or" vs. contai, David Carlisle | Date | Re: [xsl] match string, Anton Triest |
Month |