From: Adam R. <ad...@ex...> - 2013-08-13 20:33:56
|
Just to put the cat among the pigeons: Both .xqm and .xql (and .xquery and .xqy for that matter) are just file extensions, i.e. useful labels, but they all just mean XQuery to eXist. You talk about 'modules', all of the above are modules. The XQuery spec differentiates between 'main modules' and 'library modules', the spec does not specify file naming for either. You are probably thinking ad .xql as a 'main module' and .xqm as a 'library module'? Or, perhaps the other way around! There is no consensus here, just search the mailing list, for several opinions on this. I wish there were a standard! On 12 Aug 2013 16:28, "Immanuel Normann" <imm...@gm...> wrote: > Hi, > > I am not quite happy with the Default Application Structure and would > prefer to have my own one. The documentation > http://exist-db.org/exist/apps/doc/development-starter.xml#D1.2.8 says: > > "You are not required to keep this structure. Feel free to restructure the > app as you like it and remove some of its parts. However, you have to > preserve the two descriptor files expath-pkg.xml and repo.xml." > > However, there is certainly more to do than that, i.e. to adjust or to > configure, but I don't exactly know what and where. > > For instance, I would like to replace the "modules" collection by an "xqm" > and "xql" collection where I store xqm- and xql-files resp. (after all only > xqm-files are real modules). In this case I would move view.xql and app.xql > from modules into my xql collection and config.xqm to my xqm collection. > What and where do I have to adjust configurations to make this working? > > Similarly, I would prefer to store html-files in a html collection, but > not in the root of my application; and xml-files in an xml-collection etc. > Is there a documentation how to configure this? > > Regards > Immanuel > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > |