[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Theory question about keys (no code)
It's up to the implementation when it builds the index.
However, it's worth noting that a transformation might have several source documents, and the key() function can be used to search any of them. In general the processor doesn't know that a particular input document needs to be indexed until the key() function is used to search that document. Therefore, a sensible strategy is to build the index for a particular input document the first time key() is used to search that document. A complication is that XSLT 2.0 allows you to search part of a document (by specifying a third argument that is an element node). One can imagine a number of strategies for handling this, based on different assumptions about whether the application is likely to go on to search other parts of the document as well. Saxon builds an index for the whole document even if the request is to only search part of it. Michael Kay Saxonica On 06/08/2012 18:16, FAIR, ED wrote: Hi,
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|