I'm attempting to remove the Orbeon examples' look and
feel from my own app, but am having no luck. Following the instructions in FAQ question 5.1, I've removed the specified section of epilogue-servlet.xpl (using an XML PI) and replaced it with the provided pipeline "when". Orbeon completely blows up with I restart tomcat and run it. Here's the (abbreviated) code in my epilogue-servlet.xpl: <p:choose href="#xformed-data"> <!-- XHTML detection. Apply the theme, rewrite URLs, and serialize to HTML or XHTML. --> <p:when test="/xhtml:html"> <!-- Apply 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-plain.xsl"/> <p:output name="data" id="themed-data"/> </p:processor> <!-- additional processors for oxf:qname-converter, oxf:html-converter, and oxf:http-serializer --> </p:when> <!-- additional "when" tests --> </p:choose> Here's the error message: ASTChoose branch number 2 does not declare the same ids [themed-data] as the previous branches [] in resource: oxf:/config/epilogue-servlet.xpl the line number identifies the p:choose line with href="#xformed-data" Since the output of the "unsafe-xslt processor is the same in both cases, I don't understand what's causing the error. Thanks, Don -- 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 |
Hi Don,
Hopefully this may be of some help to you - Firstly, you can attach: ?orbeon-theme=plain To load the page without the Orbeon banner and navigation. You can also make modifications to epilogue-servlet.xpl to create a case for specific pages. For example, I've created a page called xforms-submit and I want to load that page using the plain theme (theme-plain.xsl). Editing /config/epilogue-servlet.xpl (on line 56 in v 3.6.0) and adding this rule: starts-with(/request/request-path, '/xforms-submit/') Achieves the desired effect. So after adding this, my line looks like this: <p:when test="starts-with(/request/request-path, '/doc/') or starts-with(/request/request-path, '/xforms-submit/') or starts-with(/request/request-path, '/fb/') or starts-with(/request/request-path, '/fr/') or /request/parameters/parameter[name = 'orbeon-theme']/value = 'plain'"> Hth, A
|
> Firstly, you can attach:
Sorry - just re-read that and it didn't make a lot of sense - what I meant to say is: firstly you can call your form using the following get parameters: ?orbeon-theme=plain
|
Administrator
|
In reply to this post by Don Smith-9
Also, in recent builds, there is a property in properties.xml:
<property as="xs:anyURI" name="oxf.epilogue.theme" value="oxf:/config/ theme-examples.xsl"/> change this to: <property as="xs:anyURI" name="oxf.epilogue.theme" value="oxf:/config/ theme-plain.xsl"/> -Erik On May 30, 2008, at 1:40 PM, Don Smith wrote: > I'm attempting to remove the Orbeon examples' look and > feel from my own app, but am having no luck. Following > the instructions in FAQ question 5.1, I've removed the > specified section of epilogue-servlet.xpl (using an > XML PI) and replaced it with the provided pipeline > "when". Orbeon completely blows up with I restart > tomcat and run it. > > Here's the (abbreviated) code in my > epilogue-servlet.xpl: > > <p:choose href="#xformed-data"> > <!-- XHTML detection. Apply the theme, rewrite URLs, > and serialize to HTML or XHTML. --> > <p:when test="/xhtml:html"> > <!-- Apply 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-plain.xsl"/> > <p:output name="data" id="themed-data"/> > </p:processor> > <!-- additional processors for oxf:qname-converter, > oxf:html-converter, and oxf:http-serializer --> > </p:when> > <!-- additional "when" tests --> > </p:choose> > > Here's the error message: ASTChoose branch number 2 > does not declare the same ids [themed-data] as the > previous branches [] > > in resource: oxf:/config/epilogue-servlet.xpl > > the line number identifies the p:choose line with > href="#xformed-data" > > Since the output of the "unsafe-xslt processor is the > same in both cases, I don't understand what's causing > the error. > > Thanks, > > Don > > > > > > -- > 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 |
Administrator
|
On Fri, May 30, 2008 at 8:04 AM, Erik Bruchez <[hidden email]> wrote:
> Also, in recent builds, there is a property in properties.xml: > > <property as="xs:anyURI" name="oxf.epilogue.theme" > value="oxf:/config/theme-examples.xsl"/> > > change this to: > > <property as="xs:anyURI" name="oxf.epilogue.theme" > value="oxf:/config/theme-plain.xsl"/> Section 5.1 of the FAQ has now also been updated to mention this. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
On Sat, 2008-05-31 at 03:09 +0930, Alessandro Vernet wrote:
> Section 5.1 of the FAQ has now also been updated to mention this. Just mentioning that it is Section 6.1 now ("How can I get rid of the left navigation bar in my own application?". Regards, Roald -- 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 |
Administrator
|
Roald,
On Wed, Jun 11, 2008 at 5:19 PM, Roald de Wit <[hidden email]> wrote: > Just mentioning that it is Section 6.1 now ("How can I get rid of the > left navigation bar in my own application?". Right, that is the section we were referring to. 5.1 became 6.1 after a new section about Form Builder (3. Orbeon Form Builder FAQ) has been added. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Free forum by Nabble | Edit this page |