Project

Profile

Help

fn:in-scope-prefixes with -pull

Added by Anonymous over 18 years ago

Legacy ID: #3627629 Legacy Poster: marcvc (marcvc)

Michael, this might well be related to my previous message (http://sourceforge.net/forum/forum.php?thread_id=1461255&amp;forum_id=94027). But to make sure... The following query doesn't report all the expected prefixes in -pull mode. declare namespace p = "uri"; fn:in-scope-prefixes(<p:e/>) And of course similar for functions like fn:namespace-uri-for-prefix, etc. Thanks, Marc


Replies (1)

RE: fn:in-scope-prefixes with -pull - Added by Anonymous over 18 years ago

Legacy ID: #3653407 Legacy Poster: Michael Kay (mhkay)

This problem can be solved by adding a NamespaceReducer to the pipeline for lazy construction of nodes: void construct() throws XPathException { PipelineConfiguration pipe = savedXPathContext.getController().makePipelineConfiguration(); PullProvider puller = getPuller(); puller.setPipelineConfiguration(pipe); TinyBuilder builder = new TinyBuilder(); builder.setPipelineConfiguration(pipe); builder.setSystemId(pipe.getLocationProvider().getSystemId(instruction.getLocationId())); NamespaceReducer reducer = new NamespaceReducer(); reducer.setUnderlyingReceiver(builder); reducer.setPipelineConfiguration(pipe); outputter.setPipelineConfiguration(pipe); reducer.open(); new PullPushCopier(puller, reducer).copy(); reducer.close(); node = builder.getCurrentRoot(); } However, I am still studying whether this solution is sufficient to solve the other related problems.

    (1-1/1)

    Please register to reply