xsl-list
[Top] [All Lists]

Re: [xsl] XSLT Hello World

2014-03-24 21:10:40
On Tue, Mar 25, 2014 at 2:55 AM, David Rudel <fwqhgads(_at_)gmail(_dot_)com> 
wrote:

One of the first things one learns in XSLT (from practically any
tutorial) is about default templates... and once one knows how default
templates work, then immediately one knows that extracting the date
can be done simply by calling the node.



Sorry, I realized that some innocent soul looking through the archives
might read this and think using xsl:apply-templates is the standard
way of pulling text from a node.

The point is that whether you spend 30 minutes brushing up on XSLT (in
which case you learn about default templates) or 30 minutes reading up
on Xpath (in which case you'll learn about atomization), either way a
user trying to use the language would see that calling the node would
extract its text, and in neither case would a user be led to use
"text()".
-David




-- 

"A false conclusion, once arrived at and widely accepted is not
dislodged easily, and the less it is understood, the more tenaciously
it is held." - Cantor's Law of Preservation of Ignorance.

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

<Prev in Thread] Current Thread [Next in Thread>