File Name ↓ | File Size ↓ | Date ↓ |
---|---|---|
Parent directory/ | - | - |
replace.xsl | 3484 | 2015-Oct-24 20:48 |
replace.xsl.old | 3402 | 2000-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.