Hi, I think I have found an error in last version of xsltforms, related with delay element. I have this code, to make a periodic reload:
<xf:action ev:event="refrescarTareasAuto">
<xf:send submission="refrescoAuto"/>
<xf:dispatch name="refrescarTareasAuto" targetid="datos">
<xf:delay>10000</xf:delay>
</xf:dispatch>
</xf:action>
And when processing with xsltforms.xsl, it generates the following error code
in html:
<script xmlns=""
type="text/javascript">XsltForms_browser.dialog.hide('statusPanel');
if (!XsltForms_globals.debugMode) {
XsltForms_globals.debugMode = true;
XsltForms_globals.debugging();
}
alert("XSLTForms Exception\n--------------------------\n\nError initializing
:\n\nxforms:delay is not supported");
</script>
I have seen that 'delay' element is not included in xsltforms.xsl. I have done
the following change in line 437:
< <xsl:when
test="contains('.setvalue.insert.delete.update.dispatch.property.targetid.name.action.load.toggle.send.setfocus.wrap.setselection.setindex.setnode.reset.retain.return.renew.refresh.rebuild.recalculate.revalidate.unload.hint.alert.help.value.item.itemset.copy.choices.filename.show.hide.method.resource.header.mediatype.message.control.',
concat('.', local-name(), '.'))">
---
> <xsl:when
> test="contains('.setvalue.insert.delete.update.dispatch.delay.property.targetid.name.action.load.toggle.send.setfocus.wrap.setselection.setindex.setnode.reset.retain.return.renew.refresh.rebuild.recalculate.revalidate.unload.hint.alert.help.value.item.itemset.copy.choices.filename.show.hide.method.resource.header.mediatype.message.control.',
> concat('.', local-name(), '.'))">
And now it works ok.
Best Regards,
Javier
<<attachment: Javier_DiazEstebaranz.vcf>>
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
