Excellent thanks, got it working from that. Just need to tidy it up and get it in the correct location then Will commit it later.
Cheers Gav... > -----Original Message----- > From: Thorsten Scherler [mailto:[EMAIL PROTECTED] > Sent: Monday, 5 March 2007 7:10 AM > To: [email protected] > Subject: RE: [jira] Commented: (FOR-811) shine and polish the pelt theme > sothat it closely resembles the pelt skin > > On Sun, 2007-03-04 at 19:51 +0900, Gav.... wrote: > ... > > > > I have :- > > > > <xsl:param name="defaultVariables" select="'test.html'"/> > > <xsl:variable name="root" > > select="$defaultVariables/*/[EMAIL PROTECTED]'root']/@value"/> > > <xsl:template name="branding-fontsize-head"> > > <script type="text/javascript" > > > > src="{$root}themes/fontsize.js"> </script> > > > > That looks fine to me. > > http://localhost:8888/themes/fontsize.js > > > > I may be going the wrong way about this, but I'm looking at other files > for > > clues. > > > > Can someone talk me through this. > > http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.f > orrest.themes.core/themes/common/html/master.ft?view=markup > > > > > <xsl:param name="defaultVariables" select="'test.html'"/> > > > > Why 'test.html' , and where is this file, I found a 'test1.html' in > > src/documentation. > > It is not a file that is why it is in '' it is a string variable as > default. > > You can change this to > <xsl:param name="defaultVariables"/> if you want. > > The defaultVariables are: > String propertyURI = "cocoon://" + requestId + ".props"; > > try: > > http://localhost:8888/index.props > > > > > select="$defaultVariables/*/[EMAIL PROTECTED]'root']/@value"/> > > > > How and what does this resolve to. > > > the xpath of <property value="" name="root"/> > > > > > The above answers may explain but > > > > src="{$root}themes/fontsize.js"> </script> > > > > how does that end up being /themes/pelt/js/fontsize.js > > It is in > http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.f > orrest.themes.core/themes/common/js/ > > http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.f > orrest.plugin.internal.dispatcher/themes.xmap?view=markup > <map:match pattern="themes/**.js"> > <map:read mime-type="application/x-javascript" > src="{lm:themes/{1}.js}" > /> > </map:match> > > http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.f > orrest.plugin.internal.dispatcher/locationmap.xml?view=markup > <!-- generic match for theme resources like css and js. --> > <!-- > {1} name > {2} extension (note we assume e.g. PATH/css/{1}.css) > --> > <match pattern="themes/**.*"> > <select type="exists"> > <location > > src="{lm:themer.project.dir}/{properties:dispatcher.theme}/{2}/{1}.{2}" /> > <location > > src="{lm:themer.project.dir}/{properties:dispatcher.fallback.theme}/{2}/{1 > }.{2}" > /> > <!-- plugin provided contracts --> > <location src="{lm:resolvePluginThemes.{2}.{1}}" /> > <location > > src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/{2}/{1}.{ > 2}" > /> > <location > > src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/ > {2}/{1}.{2}" > /> > </select> > </match> > > > > > Thanks > > To you and HTH. > > salu2 > -- > Thorsten Scherler thorsten.at.apache.org > Open Source Java & XML consulting, training and solutions
