document('')  is not a supported syntax.  The argument is supposed to be a 
URI reference, and the empty string is not a valid URI reference.

In any case, I suspect that using document() to access the current doc -- 
whether explicitly or via the empty string -- is inefficient compared with 
simply starting your path with /, so I would recommend you avoid it if 
possible. (If your XSLT processor doesn't cache documents indexed by URI, 
it might involve re-loading a second copy of the doc. If it does some 
caching, you still have to take the time to expand th URI and consult the 
cache rather than doing a simple tree-navigation to the root.)

Is there a reason you're trying to use document() rather than /?

______________________________________
Joe Kesselman  / IBM Research

Reply via email to