Re: [xsl] combining multiple documents

Subject: Re: [xsl] combining multiple documents
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 27 Jan 2008 21:50:15 GMT
It would theoretically have been possible to have key index "all"
documents rather than just one at a time, but it would likely be
horrendously expensive on systens (the majority of xslt systems)
that index "on the fly" rather than using a pre-indexed database
scheme. 

Via doc() and document() an XSLT stylesheet has access to the entire
web, and typically at the point key() is used a system need not know all
teh docuemnts that will be loaded. Your suggestion would mean that the
system would have to index every document loaded, wheras teh actual
design means that while as specified, a key applies to all documents
a system only needs to index documents on which key() is actually used.

You've used "implied context" many times, without really saying what you
mean by it. All of Xpath is interepreted relative to the current
context. Xpath expressions such as  a/b or / or key(k','x') are all
interpreted relative to the current node. It's a pervasive feature of
Xpath, not one slight oddity with the key().

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread