Thanks Alain,

I downloaded latest revision and got it working in Chrome 34!

I think your approach makes sense, however, I think it is a pity that the only 
way of loading would be via Javascript and not via the XML processing 
instruction.

Kind regards,
Mats




________________________________
 From: Alain Couthures <[email protected]>
To: Mats Eklund <[email protected]>; 
"[email protected]" 
<[email protected]> 
Sent: Sunday, May 4, 2014 9:28 AM
Subject: Re: [Xsltforms-support] Problems when using Chrome 34 and Opera 12
 


Hi Mats,

I suspect that this is not the same issue with Chrome and with
      Opera.

Chrome 34 has anticipated DOM4: attributes are not nodes anymore,
      it is not possible to get the corresponding owner element,
      namespace declarations are treated as regular attributes,...
      Latest revision of XSLTForms, only in source repositories, has
      some workarounds for this. At least, there is no exception...

Opera does not allow loading of local XSLT stylesheet (with file:// protocol). 
It sounds to be a security restriction but other browser vendors don't seem to 
follow this...

Actually, the use of native implementations of W3C standards in
      XSLTForms is a weak point: Google team is eager to remove its XSLT
      engine from Chrome, DOM4 is lighter than DOM3 and is not enough
      for full XML processing. I am currently working on XSLTForms 2.0:
      it will have its own Javascript DOM3 implementation and it will
      support Javascript-only form loading as a full polyfill.

So, these issues should not be possible with future versions of
      XSLTForms.

What do you think?

-Alain

Le 01/05/2014 07:47, Mats Eklund a écrit :

Hi Alain and others, 
>
>
>I am just beginning to try XsltForms, and am having problems opening my first 
>form in Chrome (v34) and in Opera (v12.17) getting the following error 
>messages:
>
>
>
>Chrome error on loading form:
>
>Javscript Alert
>XSLTForms Exception
>Error dispatching event 'xforms-model-construct'
>TypeError: undefined is not a function 
>
> at Object.XsltForms_browser.getMeta(...xsltforms.js: 1083:474)
> at
XsltForms_coreElement.XsltForms_instance.validate_(...xsltforms.js:7114:34)
>....
>TypeError
>undefined is not a function
>
> 
>Opera error on loading form:
>File not found: file://localhost/C:/.../xsltforms/config_en.xsl
>and subsequently
>XSLTForms Exception
>Error initializing:
><anonymous function: XsltForms_browser.loadNode>([arguments not 
>available])@file://localhost/.../xsltforms.js:894
>...
>TypeError
>Cannot convert 'src' to object
>
>
>
>Are these known problems, and is there a solution? The form loads fine in 
>Firefox!
>
>
>
>Thanks for your support!
>
>
>Mats
>
>
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to