xsl-list
[Top] [All Lists]

RE: baffled by <xsl:template match="/">

2004-05-11 12:19:35
Aha!  I think I read that briefly several months ago, but forgot it.  I've
always guessed that it was this way, but did not know the real answer for
certain.  Thanks.

-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk] 
Sent: Tuesday, May 11, 2004 3:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] baffled by <xsl:template match="/">


In Michael Kay's book, XSLT Programmer's Reference - 2nd 
Edition, the top of
page 75 says that the pattern "/" matches the root node.  I 
have always been
baffled by this, because I have never seen "/" match the root 
node when
using <xsl:template match="/">.  

Go back to page 57, which carefully explains what the root node is.

Michael Kay


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