If you're familiar with DOM, then "/" equates to the Document node, and "/*"
to the document element (TipDatabase in your case). In XSLT/XPath 1.0 the
document node is called the "root node", and the term "document element" is
not used (I generally refer to it as the "outermost element" to avoid
confusion: it is not the root of the tree, because it has a parent).
The reason a separate document or root node is needed is that it can contain
comments and processing instructions among its children, as well as the
outermost element.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: David Preuss [mailto:d(_dot_)preuss(_at_)de(_dot_)kddi(_dot_)com]
Sent: 04 August 2005 09:04
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] xsl:key function help
Hello Joris,
The usage of the 'key()' function and the implementation of
the Muenchian grouping is 100% correct.
The problem is really much easier:
You do not want <xsl:template match="/"> but instead:
<xsl:template match="TipDatabase">
gosh it works. But why? I assumed that "/" equals
"TipDatabase" because it
is the root element.
So could you give an explanation why TipDatabase != "/". I
think I should go
way back in my basic understanding of XSL concepts... :-(
Anyway thank you very much Joris.
David
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--