Hi Julien,
Le mercredi 15 d�cembre 2004 � 09:11 -0800, Julien Mercay a �crit :
> Hi Eric,
>
> Eric van der Vlist wrote:
>
> > The XForms spec would let me use a src attribute to specify
> > <xforms:instance src="/path/to/my/document.xml"/> but that's not
> > supporter by OIS right now.
>
> This feature will be in the next release. In general, the linking
> attribute (src) will be supported everywhere the specification dictates.
Great. Will its caching be gentle enough?
> > A solution is to use xinclude to include the document into the
> > xforms:instance element but, "Files that are included with XInclude must
> > be static: their content cannot change while the application is running.
> > If they do, there is a risk that an older version could be used due to
> > aggressive caching." I gave it a try and can confirm that if a user
> > updates the instance document, the modification is ignored by
> > xinclude...
>
> This is also fixed in the current CVS, and will be included in the next
> release.
Perfect!
> In the meantime, you can use an XPL file as the model:
>
> <page id="..." path-info="..." model="oxf:/model.xpl"/>
>
> The pipeline model.xpl is executed to generate a dynamic model. As a
> shortcut, you can also use an XSL file directly.
Yes, that's what I meant!
I am using:
<page path-info=".*/xform" matcher="oxf:perl5-matcher"
model="instance.xpl" xforms="form.xpl" view="view-form.xsl"/>
where "instance.xpl" takes care of saving the instance and form.xpl
copies the instance into the xforms:instance element.
And, following your idea, that's working fine if I use a XSLT
transformation to create the form:
<page path-info=".*/xform" matcher="oxf:perl5-matcher"
model="instance.xpl" xforms="form.xsl" view="view-form.xsl"/>
Thanks,
Eric
--
Tired of typing XML tags?
http://wikiml.org
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user