Declaring a namespace (prefix) can e.g. be done in the repository web console (http://localhost:8080/cms/console/) via clicking 'Add namespace'. Write to the repository via the appropiate button. This has immediate effect on a running repository and will be saved in your repository. It will be lost if your repository is in your target/ folder (as default) and you do 'mvn clean install'.
This is done in the file src/main/resources/hippoecm-extensions.xml.
<sv:node sv:name="hst_docs"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>hippo:initializeitem</sv:value> </sv:property> <sv:property sv:name="hippo:sequence" sv:type="Double"> <sv:value>10050</sv:value> </sv:property> <sv:property sv:name="hippo:namespace" sv:type="String"> <sv:value>http://www.hippoecm.org/hst/nt/hst_docs/1.0</sv:value> </sv:property> <sv:property sv:name="hippo:nodetypesresource" sv:type="String"> <sv:value>hst_docs-types.cnd</sv:value> </sv:property> </sv:node>
For other hippo:initializeitem entries in hippoecm-extensions.xml the name of the node is of no concern, but for cnd imports, the name is the prefix. The URl is defined in the property hippo:namespace.
Hippo Europe: +31 (0)20 5224466
Hippo North America: +1 (707) 773-4646
© 1999-2010 Hippo B.V., All Rights Reserved