Most plugins will work without any further configuration. However,
+ some plugins use a specific URL space to indicate a required
+ processing step. For example, the projectInfo plugin uses
+ **/docs/**/* for its use case processing. In these
+ instances you will need to add matches to your locationmap.
It is outside the scope of this document to document all + plugins here. However, we will provide an example using the + projectInfo plugin.
+ +First of all we need to examine the plugin code (or if you + are lucky documentation) to see what matches are used to drive + the processing we want. In the input.xmap we find:
+ +The generator for "cocoon:/docs/user/useCases/{1}.{2}.source.xml" + is handled by the match:
+ +So now we need to look in the locationmap for a + match for "{lm:project.useCases.{2}}". What we find + is:
+ +We can see from the above that a request for a resource + at "subsite/docs/user/useCases/simpleUseCase.xml" will + result in a locationmap lookup for + "project.useCases.subsite.simpleUseCase". The default match + in thje projectInfo will look for that in the master site + useCases directory. So we need to add a locationmap match to + the master site that will catch the subsite matches, as + follows:
+ +