xsl-list
[Top] [All Lists]

Re: [xsl] Substituting a template for value-of

2011-10-26 08:23:07
Hi,

On 10/26/2011 2:28 AM, Vasu Chakkera wrote:
> You will have to really know when the value-of can be used instead of
> the xsl:apply-templates. This can not be done at all times.
> Vasu

You also have to know when xsl:apply-templates can be used instead of xsl:value-of. (It almost always can.)

Think of xsl:value-of as pushing your motorbike forward with your feet. It's possible and sometimes useful, but it won't get you far. And your motorbike has an engine.

Beginners are sometimes a bit scared of the engine, or they don't even think of it (it is unfamiliar). So they use their feet. But learning XSLT is learning to use the engine.

Cheers,
Wendell

--
======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

--~------------------------------------------------------------------
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>
--~--