Form hidden after updating to orbeon-3.9.0.pre.201103180400-CE

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Form hidden after updating to orbeon-3.9.0.pre.201103180400-CE

ncrofts
Hi,

I'm trying to upgrade to a pre 3.9 nightly build, but have hit a problem with my forms being invisible when they load. The problem seems to be that the form has the style "xforms-initially-hidden", but I can't see why this is occurring. Is there any obvious reason of what may be happening?

Regards,
Neil
Reply | Threaded
Open this post in threaded view
|

Re: Form hidden after updating to orbeon-3.9.0.pre.201103180400-CE

ncrofts
I suspect this is related to the theme, as replacing my theme which worked with 3.8 with the theme-plain.xsl displays some of the elements of my form. I was wondering if something has changed about the way the XForms engine generates the XHTML in 3.9 and/or are there any layout settings for backward compatibility?

Regards,
Neil
Reply | Threaded
Open this post in threaded view
|

Re: Form hidden after updating to orbeon-3.9.0.pre.201103180400-CE

ncrofts
I found the problem, and in case this affects anyone else post the solution below:

The problem was that I was using a theme based on the file "theme-plain.xsl" from an early 3.8 release. This contained the following extract:

            <xhtml:body>
               
                <xsl:apply-templates select="/xhtml:html/xhtml:body/@*"/>
               
                <xsl:apply-templates select="/xhtml:html/xhtml:body/node()"/>
            </xhtml:body>
           
            <xsl:for-each select="/xhtml:html/xhtml:head/xhtml:script">
                <xsl:element name="xhtml:{local-name()}" namespace="{namespace-uri()}">
                    <xsl:apply-templates select="@*|node()"/>
                </xsl:element>
            </xsl:for-each>


The latest 3.9 preview build has the following alternative to this:

            <xsl:apply-templates select="/xhtml:html/xhtml:body"/>
            <xsl:apply-templates select="/xhtml:html/xhtml:script"/>


I swapped in this code and the forms are visible again.

Regards,
Neil



Reply | Threaded
Open this post in threaded view
|

Re: Re: Form hidden after updating to orbeon-3.9.0.pre.201103180400-CE

Erik Bruchez
Administrator
Neil,

Thanks for sharing.

BTW Nabble swallowed your markup, but it can be seen online:


-Erik

On Sat, Mar 19, 2011 at 12:27 PM, ncrofts <[hidden email]> wrote:
I found the problem, and in case this affects anyone else post the solution
below:

The problem was that I was using a theme based on the file "theme-plain.xsl"
from an early 3.8 release. This contained the following extract:















The latest 3.9 preview build has the following alternative to this:





I swapped in this code and the forms are visible again.

Regards,
Neil





--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-hidden-after-updating-to-orbeon-3-9-0-pre-201103180400-CE-tp3388622p3390155.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws