Good posting.
Can I do conditional import with the import-module() function?
I want different sub-collections to import a different style module.
if (style-exists-for-collection) then (import style.xqm) else (check-parent-collection())
If the parent does not exist then it should use a default style for the web site.
Thanks - Dan
- 0 Comments
- Add Comment
I guess the problem is that the moduleLoadPath in the XQueryContext remains the same throughout the import sequence. The moduleLoadPath is copied from the main query context to the first module context. We probably need to change it before copying to make it relative to the parent module, not the main xquery.
