Re: [Xsltforms-support] Dynamic loading of instance into a model
Brought to you by:
alain-couthures
From: Dan M. <dan...@gm...> - 2010-04-21 01:13:13
|
Hello, Are you using eXist or a similar XQuery server to generate your forms? I am not sure how to list the files from a static file system but if you are using eXist to dynamically create the form this is easy. You just get all the file resources with xmldb:get-child-resources($collection) and then create the form from the resource name you want. So the like would look like this: <xf:instance id="inlinewerken" src="{$file-name}" /> If you are interesting in "incremental model loading" where you only load the parts of a large model when you need it I have an example here: http://en.wikibooks.org/wiki/XForms/Incremental_Model_Loading I created forms with over 250 elements and had to put each portion on a separate tab. Each tab incrementally loaded part of the model. It made a big different in load times. I hope that helps! - Dan On Mon, Apr 19, 2010 at 3:38 AM, Dhiradj Badloe <dh...@gm...> wrote: > Hello, > > I have a question about the dynamic loading of an instance into a model. > Here's in example of my code: > <xf:model id="InlineWerken"> > <xf:instance id="inlinewerken" src="vte_406207_d.xml" /> > </xf:model> > The xml file is read from a local folder. This name of the XML file will be > different every time.(based on exports from another application). I'm > looking for a solution how to dynamically load the instance in the model. > Can someone help or advise me on this? Thanks! > > Regard, > > Dhiradj > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- Dan McCreary Semantic Solutions Architect syntactica.com 952-460-1674 VOIP: 111@69.199.167.229 |