xsl-list
[Top] [All Lists]

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

2007-05-30 15:12:20

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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--