Referencing css stylesheets in the view

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

Referencing css stylesheets in the view

Alan Skorkin
Referencing css stylesheets in the view

Hi,

I am trying to reference some css stylesheets in my view.

Unfortunately,  these get removed somewhere along the way and are never present in the final html rendered by Orbeon.

How can I use my own stylesheets, in Orbeon views? Do I have to modify the xforms-to-xhtml.xsl file? If so what should I put in?

Is there an easier/more generic way?

Thanks

---------------------------------------------------------------------
Alan Skorkin
Consultant
Object Consulting

[hidden email]
www.objectconsulting.com.au

consulting | development | training | support
Our Experience Makes The Difference
---------------------------------------------------------------------



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Referencing css stylesheets in the view

Alexander Žaťko
Try to put a namespace declaration to the "link" element:

<xhtml:link rel="stylesheet" href="./test.css" type="text/css"
xmlns:xhtml="http://www.w3.org/1999/xhtml"/>

I think one of the epilogue xslt templates removes nodes that are not
in the xhtml namespace.

A.

On Sep 14, 2005, at 11:10 AM, Alan Skorkin wrote:

>
> Hi,
>
> I am trying to reference some css stylesheets in my view.
>
> Unfortunately,  these get removed somewhere along the way and are
> never present in the final html rendered by Orbeon.
>
> How can I use my own stylesheets, in Orbeon views? Do I have to modify
> the xforms-to-xhtml.xsl file? If so what should I put in?
>
> Is there an easier/more generic way?
>
> Thanks
>
> ---------------------------------------------------------------------
> Alan Skorkin
> Consultant
> Object Consulting
>
> [hidden email]
> www.objectconsulting.com.au
>
> consulting | development | training | support
> Our Experience Makes The Difference
> ---------------------------------------------------------------------
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Referencing css stylesheets in the view

Erik Bruchez
Administrator
In reply to this post by Alan Skorkin
Alan Skorkin wrote:

>
> Hi,
>
> I am trying to reference some css stylesheets in my view.
>
> Unfortunately,  these get removed somewhere along the way and are never
> present in the final html rendered by Orbeon.
>
> How can I use my own stylesheets, in Orbeon views? Do I have to modify
> the xforms-to-xhtml.xsl file? If so what should I put in?
>
> Is there an easier/more generic way?
You can either put those in your XHTML view under the <head> element, if
those are specific per page. Or, you can put this in theme.xsl, if those
are global.

As mentioned by another poster, be sure to put those in the XHTML
namespace, i.e:

<xhtml:head>
   <xhtml:link .../>
</xhtml:head>

or make sure you have the XHTML namspace as the default namespace.

Note that if you are going through the examples portal, anything under
<xhtml:head> except <xhtml:title> is not forwarded to the portal, due to
the fact that each portlet must output an XHTML fragment, not a complete
XHTML document. But if you are running standalone, you will be fine.

-Erik



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws