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 ---------------------------------------------------------------------
[hidden email]
consulting | development | training | support
-- 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 |
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 |
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? 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 |
Free forum by Nabble | Edit this page |