From: Dan M. <dan...@gm...> - 2010-12-22 20:04:17
|
I just took a look at the code example and I agree that it might be useful. - Dan On Wed, Dec 22, 2010 at 1:23 PM, Wolfgang Meier <wol...@ex...>wrote: > Hi Dan, > > I'd like to propose an extension to the page assembler pattern. For > the sake of a clean separation of content and representation, I > usually prefer to use an XML template which is expanded by a separate > XQuery instead of directly embedding XQuery code into HTML/XML. For > example, I would write an index.xml template, which includes tags in a > different namespace for the dynamic stuff, e.g. to import the > javascript headers: > > <head><exist:import-script name="jquery-core"/></head> > > I would then set up an URL rewriting rule which automatically sends > index.xml through an XQuery style.xql, which includes a typeswitch to > expand the dynamic elements. This way, the user only sees index.xml in > his URL. The output could then be further processed: URL rewriting can > send an incoming request through multiple processing steps. > > My jquery module (src/org/exist/xquery/lib/jquery.xql) is based on the > template pattern, though we currently lack simple usage examples for > it (it is mainly used by the bibliographic app, which is unfortunately > rather complex). > > Wolfgang > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |