Hi Grégoire,
I understand that you would like the HTML part of the form to be
initialized at server side so output controls, select controls and
prefilled input controls could be indexed by search engines.
By default, all controls are disabled so no funny value is displayed
when loading. The XSLT stylesheet could probably do a lot of stuff
enabling some controls with the correct initial value but initializing
actions might be difficult, or even impossible, to apply.
Doing this manually is, of course, possible but can be very time
consuming, don't you think? If so, it remains that the Javascript
objects have to be initialized and that the first build is to perform
without modifying the rendered values.
I don't know yet server side Javascript engines but I would be surprised
if they were capable to interpret JS instructions which actually
interact with the HTML DOM.
Thanks!
-Alain
Le 20/04/2011 11:16, Grégoire COLBERT a écrit :
> Hi Alain!
>
> As you know, Google and other search engines don't execute JavaScript.
> So if someone wants his XSLTForms with a specific state indexed by
> Google, he has to do everything (XSLT + JS) on the server, so that
> Google sees the correct HTML.
>
> This could be ideal : given that you have written some JS to initialize
> your form based on the URL, you could:
> 1) serve Google what he wants (correctly filled HTML);
> 2) keep XSLTForms code alive in the<head>, so that humans can still use
> the form.
>
> If you use Firefox Web Developer extension, you can use "View generated
> source" to retrieve the equivalent of a full server-side initialization.
> Save this view to a file, disable JavaScript, and open this file : this
> is what Google will see, and "so far so good".
>
> But if you don't disable JavaScript before opening this file (case #2,
> what normal users will do), XSLTForms doesn't keep the generated state.
>
> Test-case is attached: the source "test-wrong-order.xml" and the already
> initialized form "test-wrong-order-statique.html".
>
> An idea to avoid this problem could be that XSLTForms set a variable
> somewhere in the page that would tell him if the form is already
> initialized or not. It could then be possible to initialize everything
> on the server to satisfy search engines, and still serve a dynamic
> application to users.
>
> How does it sound?
>
> Thanks!
> Grégoire
>
>
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>
>
> _______________________________________________
> Xsltforms-support mailing list
> Xsl...@li...
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
|