removing Orbeon examples' look and feel

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

removing Orbeon examples' look and feel

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

Re: removing Orbeon examples' look and feel

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


Don Smith-9 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">
 
  <p:when test="/xhtml:html">
   
    <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>
   
  </p:when>
 
</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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: removing Orbeon examples' look and feel

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

Alex Bleasdale wrote
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


Don Smith-9 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">
 
  <p:when test="/xhtml:html">
   
    <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>
   
  </p:when>
 
</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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: removing Orbeon examples' look and feel

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

Re: Re: removing Orbeon examples' look and feel

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

Re: Re: Re: removing Orbeon examples' look and feel

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

Re: Re: Re: Re: removing Orbeon examples' look and feel

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