Posted by
Alessandro Vernet on
URL: https://discuss.orbeon.com/Question-regarding-how-to-apply-CSS-stylesheets-tp42849p42855.html
Patrik,
On Feb 24, 2009, at 12:17 AM, Helsing, Patrik wrote:
> 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?
In standard deployment, yes this is how it is supposed to be
rewritten. In essence, if you start your URI with /, Orbeon will add
the context before the /, so you can write your application without
having to know where it is going to be deployed. Relative URI of the
form ../gaga or ./gaga are not rewritten.
> 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.)
This is a bug. Your URI /view.css should be rewritten /thesky/view.css
(or not be rewritten at all). This is a P9 bug (our highest priority),
and we'd like to have it fixed soon.
http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207Alex
--
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