Subject: Re: [xsl] auto-replacing text with hyperlink From: Oliver Kiddle <opk@xxxxxxxxxxxxx> Date: Thu, 14 Aug 2003 14:42:46 +0200 |
You wrote: > Unfortunately it doesn't. When I used exactly the same template with the XML > document I have, it changed every instance of the word into a hyperlink. I Looks to me like it will change the first instance in every text() node which will probably be most instances. You could try a template which matches only the first text() node containing the term: <xsl:template match="text()[contains(.,$term)][1]"> Oliver XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] auto-replacing text with , David Carlisle | Thread | [xsl] 'Unexpected Child' error when, Bruce . Sommerfeld |
Re: [xsl] pass malformed HTML throu, Stan Devitt | Date | Re: [xsl] enclose output of transfo, Armen Martirossian |
Month |