RE: Re: RE: RE: Re: Question regarding how to apply CSS stylesheets?

Posted by Helsing, Patrik on
URL: https://discuss.orbeon.com/Question-regarding-how-to-apply-CSS-stylesheets-tp42849p42854.html

Hi!
 
Thanks for the help. I got it to work if I use absolute path, like this:
 
    <xhtml:link rel="stylesheet" type="text/css" href="/apps/my-sandbox/welcome.css" media="screen" />
 
Then the link is transformed into this href="/orbeon/apps/my-sandbox/welcome.css".
Is this how I am supposed to solve this? Can I get relative paths to work?
 
Ok. So I could get it to work as an embedded example application. How about separate deployment then?
I have a separate web application I call thesky. So in that xhtml file I have the following link to stylesheet (absolute path as well):
 
    <link rel="stylesheet" type="text/css" href="/view.css" media="screen" />
 
But this link is transformed into href="/thesky/orbeon/view.css". What's happening here?
I want my page to be rendered by Orbeon XForms so obviously I have a filter for this web application, but what is happening
with the reference to the stylesheet?
(Even so, if I create a folder named 'orbeon' under folder 'thesky' and put the view.css file there it still won't apply the stylesheet.)
 
Thanks!

Patrik Helsing
Tel +46 8 474 4560
[hidden email]

 


From: Einar Moos [mailto:[hidden email]]
Sent: den 23 februari 2009 20:24
To: [hidden email]
Subject: [ops-users] Re: RE: RE: Re: Question regarding how to apply CSS stylesheets?

The stylesheet is at the root of the application folder. There you add your own and then link to detail-view.xhtml.

HTH

-- einar

On Mon, Feb 23, 2009 at 6:46 PM, Helsing, Patrik <[hidden email]> wrote:

I tested this with theme-plain.xsl as well. There is no stylesheet
applied in theme-plain.xsl.
Same problem. My own stylesheet is not being applied.

/Patrik

-----Original Message-----
From: Helsing, Patrik [mailto:[hidden email]]
Sent: den 23 februari 2009 18:39
To: [hidden email]
Subject: [ops-users] RE: Re: Question regarding how to apply CSS
stylesheets?

Hi,

This is an example application (copy of Orbeon example applications)
and it has the same epilogue as all the other example apps.

I am not sure I follow all the steps being involved here.

1) Orbeon is configured with web.xml which have a pointer to the
properties.xml used by the Resource Manager.
2) The properties.xml configures the epilogue and its theme. It points
to /config/theme-examples.xsl
3) The theme-examples.xsl contains the following link to a stylesheet
       <xhtml:link rel="stylesheet" href="/config/theme/orbeon.css"
type="text/css" media="all"/>

This stylesheet (orbeon.css) I cannot find in my directory structure(?),
but is this also the reason
why my own stylesheet isn't applied? How do I continue from here?

Thanks!
Patrik

-----Original Message-----
From: Hank Ratzesberger [mailto:[hidden email]]
Sent: den 23 februari 2009 17:59
To: [hidden email]
Subject: [ops-users] Re: Question regarding how to apply CSS
stylesheets?


Hi Patrick,

In the epilogue portion of the page flow, your XHTML file
is output as HTML 4.0, so elements with no content don't need
to be terminated, no "/>"  Orbeon Forms is attempting to deliver
widely compatible html, that is all.

http://www.orbeon.com/ops/doc/reference-epilogue

Have you tried both the theme-plain and theme-examples.xsl? You
can configure which one to use:

http://www.orbeon.com/ops/doc/reference-properties#epilogue

HTH,
Hank


On Feb 23, 2009, at 8:30 AM, Helsing, Patrik wrote:

> Hi all,
>
> I am developing a simple XHTML page and thought I should link to a
> CSS stylesheet.
>
> Like this:
>                 <link rel="stylesheet" type="text/css" href="./
> welcome.css" />
>
> But after post-processing it through the XForms engine it ends up
> like this in the browser
> (no end tag) and the stylesheet isn't applied...?
>
>                 <link rel="stylesheet" type="text/css" href="./
> welcome.css">
>
> What am I doing wrong here?
>
> Thanks!
> /Patrik
>
> PS: I also see these tags being generated. No end tags there
> either...(?)
>
> <meta name="generator" content="Orbeon Forms 3.7.0beta1.200808260135">
> <link rel="shortcut icon" href="/thesky/orbeon/ops/images/orbeon-
> icon-16.ico">
> <link rel="icon" href="/thesky/orbeon/ops/images/orbeon-
> icon-16.png" type="image/png">
>
>
> This communication, including any attachments, may contain
> information that is proprietary, privileged, confidential or
> legally exempt from disclosure. If you are not a named addressee,
> you are hereby notified that you are not authorized to read, print,
> retain a copy of or disseminate any portion of this communication
> without the consent of the sender and that doing so may be
> unlawful. If you have received this communication in error, please
> immediately notify the sender via return e-mail and delete it from
> your system.
>
> --
> 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

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042





This communication, including any attachments, may contain information
that is proprietary, privileged, confidential or legally exempt from
disclosure.  If you are not a named addressee, you are hereby notified
that you are not authorized to read, print, retain a copy of or
disseminate any portion of this communication without the consent of the
sender and that doing so may be unlawful.  If you have received this
communication in error, please immediately notify the sender via return
e-mail and delete it from your system.
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure.  If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful.  If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.


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


 
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.

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