[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: auto-replacing text with hyperlink
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|