replace.xsl

/xml/stylesheets/replace/

File Name  ↓ File Size  ↓ Date  ↓ 
--
34842015-Oct-24 20:48
34022000-Nov-10 21:21

Description: This is an example of using a named template to do substring replacement. It relies on tail recursion, in order to be XSLT 1.0 conformant. This template can be used when the XPath translate() function, which operates on single characters in a string, is insufficient. It uses the XPath functions substring-before(), substring-after(), and concat(), and is quite simple.