[Home] [By Thread] [By Date] [Recent Entries]
Selvaganesh wrote:
Dear Team, You need to concat the attribute values e.g. select="replace(., concat('(', @party1, '.*?', @party2, ')'), '<cite>$1</cite>')" But the replacement looks as if you want to insert a 'cite' element so using analyze-string instead of replace might be what you really want. So instead of the value-of use e.g. <hov:analyze-string select="." regex="({@party1}.*?{@party2})">
<hov:matching-substring>
<cite>
<xsl:value-of select="regex-group(1)"/>
</cite>
</hov:matching-substring>
<hov:non-matching-substring>
<xsl:value-of select="."/>
</hov:non-matching-substring>
</hov:analyze-string>The above is untested. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



