Re: [Xsltforms-support] Multiple external instances in a model
Brought to you by:
alain-couthures
From: Philip F. <Phi...@ma...> - 2011-07-18 06:12:04
|
William, I can't remember whether I've run into this problem or not but you can work around your problem by using the xforms-ready event to trigger the requests for the other instances: <xf:model> <xf:action ev:event="xforms-ready"> <xf:submit submission="get-tipos_ins"/> <xf:submit submission="get-reglas_ins"/> <xf:action> <xf:submission id="get-tipos_ins" method="get" resource="tipos.xml" instance="tipos_ins" replace="instance" serialization="none" /> <xf:submission id="get-reglas_ins" method="get" resource="reglas_contacto.xml" instance="tipos_ins" replace="instance" serialization="none" /> ... </xf:model> Have a look at the exsltforms extensions: <http://extxsltforms.sourceforge.net/sitKubera/index/index.xml> they include a debugging tool 'the data instances viewer' that allows you to see the contents of instances. It may show that they have loaded but there's some other issue, like namespaces, that's causing your problems. > is possible to use xpath expressions between different models? There is a model attribute that is available on many XForms instructions that allows you to declare the model that will be the context in which an XPath expression is evaluated. Regards Philip Fennell Consultant MarkLogic Corporation Phi...@ma... Phone: +44 (0) 203 402 3619 Mobile: +44 (0) 7824 830 866 www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. From: William David Velasquez [mailto:wi...@bi...] Sent: Friday, July 15, 2011 6:12 PM To: xsl...@li... Subject: [Xsltforms-support] Multiple external instances in a model Hi, I´m trying to put three instances in the xform model which from external request: <xforms:instance id="ins" src="/siclho/pdserver.dll/doc/new? template=Actividad"/> <xforms:instance id="tipos_ins" src="tipos.xml"/> <xforms:instance id="reglas_ins" src="reglas_contacto.xml"/> But it looks like only the first instance is loaded. If I put every instance in a different model it works, but I have some validations to do between the instances, but this is only possible if the instances belongs to the same model. Can XSLTForms load many instances in a model? Or just one? If the answer is no, is possible to use xpath expressions between different models? Thank you very much. I really love XSLTForms! William David Velasquez Consultor en Tecnología Bitlab Cel 315 488 77 98 |