Notes for porting projects to the new eXist
These are the results of my previous research, now confirmed, on changes required when porting projects from the old eXist (1.0b) to 1.1.1. Additions will be made to this list as other projects are ported and we discover other changes that might need to be made:
1. Remove any bindings of the fn: prefix. These seem to be redundant survivals, and clash with an internal binding in eXist.
2. You may need to add an explicit XQuery generator to the sitemap -- take it from the sitemap in the XQuery folder of eXist. [THIS DID NOT PROVE NECESSARY WHEN USING THE 1.1.1 VERSION OF EXIST BUILT INTO COCOON AS A BLOCK.]
3. For any project, we will need to add a map:mount element to the appropriate location (along with all the others) in order to cause the project sitemap to be loaded in the context of the project itself, overriding the root sitemap (otherwise the root sm takes precedence):
<map:match pattern="katakana/**">
<map:mount check-reload="yes" src="katakana/sitemap.xmap" uri-prefix="katakana"/>
</map:match>
AGAIN, PROVED UNNECESSARY WHEN USING COCOON/EXIST/BLOCK. REMOVE IF PORTING OTHER PROJECTS PROVES IT'S NOT REQUIRED.
4. request:request-parameter is changed to request:get-parameter.
5. Any instances of
return
alone on a line should be changed to:
()