Re: [Xsltforms-support] Problem with exsltforms and Chrome...
Brought to you by:
alain-couthures
From: Philip F. <Phi...@ma...> - 2011-05-17 11:20:52
|
For anyone trying the same as me, I seem to have solved this problem by providing the two additional arguments as follows: var xf_instance_extensions = new XFInstance("xf-instance-extensions", xf_model_extensions, null, 'application/xml', '', "<extensionRoot/>"); The fourth and fifth arguments I have added as media-type = "application/xml" and src = "". I have no idea if they are correct in this context (beyond the fact that the acceptable values for media-type seem to be 'application/xml' and 'application/json', but as for the 'src' I have no idea but it seems to work! Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> From: Philip Fennell [mailto:Phi...@ma...] Sent: Tuesday, May 17, 2011 11:48 AM To: Claudius Teodorescu Cc: xsl...@li... Subject: Re: [Xsltforms-support] Problem with exsltforms and Chrome... Further to yesterday's question regarding XSLTForms and eXSLTForms I have now also tried eXSLTForms with both r494 and r502. In both FF and Chrome I get the following error message: Unsupported mediatype '<extensionRoot/>' for instance #xf-instance-extensions It would seem that the constructor 'XFInstance' is defined as having six arguments but it is being called with only for, hence the mismatch between an element name and the media-type. What would the correct values be for the six argument version of 'XFInstance' in this context? Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> From: Philip Fennell [mailto:Phi...@ma...] Sent: Tuesday, May 17, 2011 7:09 AM To: Claudius Teodorescu Cc: xsl...@li... Subject: [Xsltforms-support] Problem with exsltforms and Chrome... I'm currently using XSLTForms (Beta3), I've installed eXSLTForms (1.0.7) and I'm using the CKEdit (3.6) RTE extension. This all works fine in Firefox (3.6.10) but I get the following message with Chrome (11.0.696.68): XSLTForms Exception ---------------------------- Incorrect Javascript code generation: ReferenceError: initImpl is not defined at init ([webapp-uri]:271:1) at ([webapp-uri]:276:301) at onload ([webapp-uri]:277:4) ReferenceError: initImpl is not defined I have isolated the problem to the markup that is added to the 'extensions' element in xsltforms/config.xsl. Any ideas what the problem/fix might be? Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> |