Hello, we have an strange error with last version of xsltforms. Last version I have checked it works ok is r372 and partially in r489.
I send you a test case, if we are doing something wrong, please let us know.
In the test case we have some data in a instance, and we have inside a
repeat node a select of this data whose itemset points to another
instance. This instance data is updated when "xforms-ready" event is
fired. Data from select it isn't updated when new data is loaded (it
works in r372 and r489, but doesn't in newer versions). Newer items
created after loading new data are ok. Also, we have in test case a
button to add new items that works in r372 and r537 but it dowesn't in
r489 (as it works in last revision it doesn't matter).
Best Regards,
Javier
************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial
y puede revestir el carácter de reservada. *
*Está dirigida exclusivamente a la persona destinataria.
*
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje
no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.
*
*The information in this e-mail is confidential and may be legally privileged.
*
*It is intended solely for the addressee.
*
*Access or any use by any other person to this Internet e-mail is not
authorised and may be unlawful. *
*If you are not the intended recipient, please delete this e-mail.
*
************************************************************************************************************************************************
<?xml version="1.0" encoding="iso-8859-1"?>
<doc>
<TIPO_TARJETA>
<IDELEMENTO>0</IDELEMENTO>
<ETIQUETA>Seleccione...</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371108</IDELEMENTO>
<ETIQUETA>CRAFT-MX960-S</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371110</IDELEMENTO>
<ETIQUETA>DPCE-20x1GE-2x10GE-R</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371111</IDELEMENTO>
<ETIQUETA>MS-DPC</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371117</IDELEMENTO>
<ETIQUETA>MX-MPC1-3D-Q-R-B</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371116</IDELEMENTO>
<ETIQUETA>MX-MPC1-3D-R-B</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371118</IDELEMENTO>
<ETIQUETA>MX-MPC2-3D-Q-R-B</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371119</IDELEMENTO>
<ETIQUETA>MX-MPC2-3D-R-B</ETIQUETA>
</TIPO_TARJETA>
<TIPO_TARJETA>
<IDELEMENTO>371113</IDELEMENTO>
<ETIQUETA>RE-S-1800X4-16G-R</ETIQUETA>
</TIPO_TARJETA>
</doc>
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?> <html xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:txs="http://www.agencexml.com/txs" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/"> <head> <xf:model id="EQUIPO"> <xf:instance id="root"> <EQUIPO xmlns=""> <TARJETA> <MODELO>371111</MODELO> </TARJETA> <TARJETA> <MODELO>371110</MODELO> </TARJETA> </EQUIPO> </xf:instance> <xf:instance id="plantilla"> <EQUIPO xmlns=""> <TARJETA> <MODELO>0</MODELO> </TARJETA> </EQUIPO> </xf:instance> <xf:submission id="getData" resource="data.xml" instance="tipos-tarjetas" method="get" mode="synchronous" replace="instance" serialization="none"> </xf:submission> <xf:action ev:event="xforms-ready"> <xf:send submission="getData"/> </xf:action> </xf:model> <xf:model id="TIPOS"> <xf:instance id="tipos-tarjetas"> <data xmlns=""> <TIPO_TARJETA> <IDELEMENTO>0</IDELEMENTO> <ETIQUETA>Seleccione...</ETIQUETA> </TIPO_TARJETA> </data> </xf:instance> </xf:model> </head> <body> <xf:repeat id="lista-tarjetas" nodeset="TARJETA" startindex="1"> <xf:select1 id="modelo" ref="MODELO"> <xf:itemset model="TIPOS" nodeset="instance('tipos-tarjetas')/TIPO_TARJETA"> <xf:value ref="IDELEMENTO"/> <xf:label ref="ETIQUETA"/> </xf:itemset> </xf:select1> </xf:repeat> <xf:trigger> <xf:label>Añadir tarjeta</xf:label> <xf:action ev:event="DOMActivate"> <xf:insert at="last()" context="instance('root')" nodeset="TARJETA" origin="instance('plantilla')/TARJETA" position="after"/> </xf:action> </xf:trigger> </body> </html>
<<attachment: jdiaz.vcf>>
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
