[thelist] XSLT Recursive Templates

Stevenson Ngila Stevenson at epr.footman-walker.com
Fri Jun 27 03:18:15 CDT 2003


Hi,
Since XSLT doesn't have a replace function, most programmers tend
to use recursive template to perform the replace task.

This templates have been proven to really slow down applications.

For example when formatting text to include paragraphs, we found the
better option to be:

<><><><><><><><><><><><<><><><><><><><><><><><<><><><><><><><><><><><<><><><
><><>
<textarea class="textFormat" readonly="true">
	<xsl:value-of select="d"/>
</textarea>

.textFormat {
	width: 100%;
	height: 100%;
	font-family: Arial, sans serif;
	font-size: 8pt;
	background-color:
	transparent; color: #000000;
	border: 0px;
	overflow: visible;
}
<><><><><><><><><><><><<><><><><><><><><><><><<><><><><><><><><><><><<><><><
><><>

As oppose to using a recursive template.

Use them as a last result.



More information about the thelist mailing list