forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject RE: [jira] Commented: (FOR-811) shine and polish the pelt theme so that it closely resembles the pelt skin
Date Sun, 04 Mar 2007 22:10:01 GMT
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/*/*[@name='root']/@value"/>
> 			  <xsl:template name="branding-fontsize-head">
> 		      <script type="text/javascript"
> 	
> src="{$root}themes/fontsize.js">&#160;</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.forrest.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/*/*[@name='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">&#160;</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.forrest.themes.core/themes/common/js/

http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.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.forrest.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


Mime
View raw message