xsl-list
[Top] [All Lists]

RE: [xsl] combining multiple documents

2008-01-27 15:01:53
If you accept that a transaction will, ultimately, want to 
process multiple documents or documents with multiple 
components then it should be clear that the implied context 
introduces referencing difficulties.

That's why XSLT 2.0 added the third argument to the key() function. If you
use the third argument, then the key() function has no dependencies on the
context in which it is evaluated (other than any dependencies that may exist
in its arguments, of course).

As a general usability point, my experience is that the use of implicit
context in XSLT and XPath tends to make easy things easier and hard things
harder. But when it becomes a problem, you can always bind explicit
variables.

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

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