RE: [xsl] value-of or apply-templates: What is "best"?

Subject: RE: [xsl] value-of or apply-templates: What is "best"?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 30 May 2007 23:11:51 +0100
> Assuming a simple XML document:
> 

If you assume a simple input document, then the value-of solution will
always be best. The whole point about apply-templates is that it doesn't
assume a simple document. It allows your code to work with other documents
or document structures; it's more resilient to change and variation in the
input. It gives your code greater reusability and greater longevity.

Michael Kay
http://www.saxonica.com/

Current Thread