Question regarding how to apply CSS stylesheets?

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

Question regarding how to apply CSS stylesheets?

Helsing, Patrik
Question regarding how to apply CSS stylesheets?

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

Re: Question regarding how to apply CSS stylesheets?

Hank Ratzesberger

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







--
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: Question regarding how to apply CSS stylesheets?

Helsing, Patrik
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.


--
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: Question regarding how to apply CSS stylesheets?

Helsing, Patrik

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

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

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




--
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: Question regarding how to apply CSS stylesheets?

Alessandro Vernet
Administrator
In reply to this post by Helsing, Patrik
Patrik,

On Feb 23, 2009, at 9:39 AM, Helsing, Patrik wrote:

> 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

orbeon.css is your lib/orbeon-resources-private.jar. The resource  
manager first looks for files in WEB-INF/resources, then looks for  
them in the "web app class path". You can see how this is setup in  
the web.xml; look for the <context-param> with name starting with  
"oxf.resources.priority".

The idea is that files you usually don't need to see, or that you  
shouldn't change (because that will create some complications for you  
when you try to upgrade to a new version of Orbeon Forms) are in  
orbeon-resources-private.jar instead of being directly in the  
resources directory.

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/



--
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: Re: Question regarding how to apply CSS stylesheets?

Helsing, Patrik
In reply to this post by Einar Moos
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
Reply | Threaded
Open this post in threaded view
|

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

Alessandro Vernet
Administrator
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=350207

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