Hi,
I have coded a custom xsl theme & included it in the properties-base.xml; When i ran the application it displays with the theme-plain.xsl; (I have noticed in error situations it'll direct to theme-plain.xsl) Below is my custom xsl theme. theme-rulesmanager-.xsl I would be grateful, If someone can assist me to troubleshoot the code Regards, Safraz |
Safraz, There is also a use-theme element in properties-base. Perhaps if you provided the p-b file we would have a little better idea what is going on. Thanks, Hank On Jul 7, 2009, at 2:32 AM, safraz wrote: > > Hi, > > I have coded a custom xsl theme & included it in the properties- > base.xml; > When i ran the application it displays with the theme-plain.xsl; (I > have > noticed in error situations it'll direct to theme-plain.xsl) > > Below is my customer xsl theme. > > > http://www.nabble.com/file/p24369923/theme-rulesmanager-.xsl > theme-rulesmanager-.xsl > > > I would be grateful, If someone can assist me to troubleshoot the code > > Regards, > Safraz > > > > -- > View this message in context: http://www.nabble.com/Problem-with- > custome-xsl-theme-tp24369923p24369923.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 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 |
Administrator
|
In reply to this post by safraz
Safraz,
You are saying that your theme doesn't get picked up; is that right? Like Hank said, check oxf.epilogue.use-theme is still true. If it is maybe start by making oxf.epilogue.theme point to a non-existent file and see if you get an error (to check that the property is actually read). Alex |
|
Administrator
|
I see: the <xhtml:html> you have inside <xsl:stylesheet> doesn't mean anything in XSLT. So I guess it is just ignored. And you are left with copy rule at the bottom of the page, which just copies everything that comes in to the output. I assume you wanted to have a <xsl:template> around that <xhtml:html>. Alex |
I have applied the change theme-rulesmanager-.xsl However, when i run the application, i get a blank page. Following is the generated html code (debugged with firebug) <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <title>Rules Manager - Welcome to the Orbeon Forms Example Applications</title> <link media="all" type="text/css" href="/RulesManager/config/theme/orbeon.css" rel="stylesheet"/> <link href="/RulesManager/images/favicon.ico" rel="shortcut icon"/> <link type="image/png" href="/RulesManager/images/favicon.ico" rel="icon"/> <title>Rules Manager inner- Welcome to the Orbeon Forms Example Applications</title> </head> <frameset border="0" rows="80, *"> <frame scrolling="no" marginwidth="0" marginheight="0" frameborder="0"> <html> <head> <title/> </head> <body/> </html> </frame> <frameset border="0" cols="*,760,*"> <frame scrolling="no" name="left" marginwidth="0" marginheight="0" frameborder="0"> <html> <head> <title/> </head> <body/> </html> </frame> <frame> <html> <head> <title/> </head> <body/> </html> </frame> <frame scrolling="no" name="right" marginwidth="0" marginheight="0" frameborder="0"> <html> <head> <title/> </head> <body/> </html> </frame> </frameset> </frameset> </html> As you See head/body contents are not copied in frames. What did i missed here? Regards, Safraz Hanas |
Administrator
|
Safraz,
This looks much better. However, it is hard to say why you get an empty page without running your code. I recommend you replace the content of your stylesheet with the content of theme-plain.xsl. Then change it progressively to the match what you want to have. Alex |
Free forum by Nabble | Edit this page |