epilogue custom html not rendered with 3.7 beta.

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

epilogue custom html not rendered with 3.7 beta.

richhl
I've modified shortly theme-plain.xsl in order to put a litle html sourrounding the pages of my app. This works well with 3.6 but i got this error under 3.7beta:

Exception Class org.orbeon.saxon.trans.DynamicError
Message An attribute node (class) cannot be created after the children of the containing element
Resource URL oxf:/apps/neuro/config/tema/tema-neuro.xsl
Line 95
Column N/A
Servlet Stack Trace
(275 method calls)
Class Name Method Name File Name Line Number
org.orbeon.saxon.instruct.Instruction dynamicError Instruction.java 129
org.orbeon.saxon.instruct.Copy processLeavingTail Copy.java 159
org.orbeon.saxon.instruct.Template applyLeavingTail Template.java 99

Attached the offending theme-xsl (a copy of theme-plain with custom html in the body section).

thx a lot.

rich

--
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

tema-neuro.xsl (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

epilogue problem with 3.7 beta (1sr problem solved but NEW problem emerges)

richhl
It was due to have my pages pointed to a 3.6 version of epilogue.xpl & epilogue-servlet.

I've solved first problem by setting oxf.epilogue.theme for pointing to the file attached at last email instead of having my own epilogue and epilogue-servlet.

but know I've got a new problem:

Toggle org.orbeon.saxon.trans.DynamicError
Exception Class org.orbeon.saxon.trans.DynamicError
Message Failed to load document input:instance
Resource URL oxf:/apps/neuro/config/tema/tema-neuro.xsl
Line 28
Column N/A

associated with this tema-neuro.xsl line:

<xsl:variable name="nombre_escala" select="doc('input:instance')/*/nombre_escala" as="xs:string?"/>

This variable is supposed to be filled with data from the url requesting the page:

       <page id="escala" path-info="/neuro/([^/]*)" matcher="oxf:perl5-matcher"
  default-submission="parametros.xml" view="escala.xhtml">
                <setvalue ref="/parametros/nombre_escala" matcher-group="1"/>
                <setvalue ref="/parametros/vista" value="general"/>
        </page>

and it works well in 3.6.

thx a lot

rich


--
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
Reply | Threaded
Open this post in threaded view
|

Re: epilogue problem with 3.7 beta (1sr problem solved but NEW problem emerges)

Erik Bruchez
Administrator
I notice that the current epilogue-servlet.xpl does not seem to pass  
the "instance" input to the theme:

<p:processor name="oxf:unsafe-xslt">
     <p:input name="data" href="#xformed-data"/>
     <p:input name="request" href="#request"/>
     <p:input name="config" href="#theme"/>
     <p:output name="data" id="themed-data"/>
</p:processor>

I am not sure why this was changed, but I suppose we can connect it  
back:

* Uncomment <p:param type="input" name="instance"/>
* Add <p:input name="instance" href="#instance"/> to oxf:unsafe-xslt  
above

-Erik

On Sep 19, 2008, at 2:13 AM, Richard C. Hidalgo Lorite wrote:

> It was due to have my pages pointed to a 3.6 version of epilogue.xpl  
> & epilogue-servlet.
>
> I've solved first problem by setting oxf.epilogue.theme for pointing  
> to the file attached at last email instead of having my own epilogue  
> and epilogue-servlet.
>
> but know I've got a new problem:
>
> Toggle org.orbeon.saxon.trans.DynamicError
> Exception Class org.orbeon.saxon.trans.DynamicError
> Message Failed to load document input:instance
> Resource URL oxf:/apps/neuro/config/tema/tema-neuro.xsl
> Line 28
> Column N/A
>
> associated with this tema-neuro.xsl line:
>
> <xsl:variable name="nombre_escala" select="doc('input:instance')/*/
> nombre_escala" as="xs:string?"/>
>
> This variable is supposed to be filled with data from the url  
> requesting the page:
>
>       <page id="escala" path-info="/neuro/([^/]*)"  
> matcher="oxf:perl5-matcher"
>  default-submission="parametros.xml" view="escala.xhtml">
>                <setvalue ref="/parametros/nombre_escala" matcher-
> group="1"/>
>                <setvalue ref="/parametros/vista" value="general"/>
>        </page>
>
> and it works well in 3.6.
>
> thx a lot
>
> rich
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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