Hi,
On 5/2/07, Kalyan Sarkar <[EMAIL PROTECTED]> wrote:
I have programmatically registered the namespace 'repro' before this code
fragment.
The interesting part is that when I register the nodetypes through
JackrabbitNodetypeManager I dont get the exception. For e.g.
NodeTypeManagerImpl manager = (NodeTypeManagerImpl) ws.getNodeTypeManager();
manager.registerNodeTypes(in, NodeTypeManagerImpl.TEXT_X_JCR_CND);
Can anybody tell me what am I missing.
The NodeTypeManagerImpl class automatically makes all the registered
namespaces available to the CND parsers. If you instantiate the parser
directly, you need to explicitly add the namespaces you use. In any
case it's a good idea to include all namespace mappings in the CND
file.
BR,
Jukka Zitting