Author: thorsten
Date: Mon Dec 12 13:02:49 2005
New Revision: 356374
URL: http://svn.apache.org/viewcvs?rev=356374&view=rev
Log:
Added/enhanced examples around the use of css in the structurer. Tested with
css the first non-markup language in the structurer. As well firstly tested the
new xml based property system instead of the xsl. Contracts could taken default
variables for given till now where the contract author still can use default
properties but have to request them like <xsl:param name=defaultVariables
select=test.html/> <xsl:variable name=path select=/*/[EMAIL
PROTECTED]/@value/>. This makes it possible to use this properties in a wider
range of languages besides xsl.
Added:
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-theme-profiler.ft
Modified:
forrest/trunk/main/template-sites/v2/src/documentation/content/xdocs/index-foo.fv
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-generic-css.ft
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft
Modified:
forrest/trunk/main/template-sites/v2/src/documentation/content/xdocs/index-foo.fv
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/template-sites/v2/src/documentation/content/xdocs/index-foo.fv?rev=356374&r1=356373&r2=356374&view=diff
==============================================================================
---
forrest/trunk/main/template-sites/v2/src/documentation/content/xdocs/index-foo.fv
(original)
+++
forrest/trunk/main/template-sites/v2/src/documentation/content/xdocs/index-foo.fv
Mon Dec 12 13:02:49 2005
@@ -3,13 +3,26 @@
<forrest:view type="css" hooksXpath="/">
<forrest:contract name="branding-generic-css">
<forrest:property name="branding-generic-css-input">
- /* Extra css */
+/* Extra css */
p.quote {
margin-left: 2em;
padding: .5em;
background-color: #f0f0f0;
font-family: monospace;
}
+ p.quote2 {
+ margin-left: 2em;
+ padding: .5em;
+ background-color: #f0f0f0;
+ font-family: monospace;
+ }
+ </forrest:property>
+ </forrest:contract>
+ <forrest:contract name="branding-theme-profiler">
+ <forrest:property name="branding-theme-profiler-theme">
+ pelt</forrest:property>
+ <forrest:property name="branding-theme-profiler">
+ <color name="header" value="#ff00ff"/>
</forrest:property>
</forrest:contract>
</forrest:view>
Modified:
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-generic-css.ft
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-generic-css.ft?rev=356374&r1=356373&r2=356374&view=diff
==============================================================================
---
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-generic-css.ft
(original)
+++
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-generic-css.ft
Mon Dec 12 13:02:49 2005
@@ -35,7 +35,7 @@
<xsl:template match="/">
<forrest:content>
<forrest:part>
- <xsl:value-of select="$branding-generic-css-input"/>
+<xsl:value-of select="$branding-generic-css-input"/>
</forrest:part>
</forrest:content>
</xsl:template>
Added:
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-theme-profiler.ft
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-theme-profiler.ft?rev=356374&view=auto
==============================================================================
---
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-theme-profiler.ft
(added)
+++
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/css/branding-theme-profiler.ft
Mon Dec 12 13:02:49 2005
@@ -0,0 +1,373 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-theme-profiler" type="nugget">
+
+ <description>
+ <p>
+ <strong>branding-theme-profiler</strong> provides a quick
+ way to change the colors of the theme (it not a "real" color-theme
switcher).
+ </p>
+ <pre class="code"><![CDATA[ A theme is a presentation layer that provides
an aggregation of
+a) theme structure information (*.fv)
+b) theme style information (*.css & *.png|jpg|gif|...)
+c) theme functionality (*.js & *.ft)]]> </pre>
+ <p> A "real" theme switcher would change a/b/c. </p>
+ <p> A "real" color-theme switcher should also provide a possibility to
+ change each color with a WEB-GUI. </p>
+ <pre class="code"><![CDATA[ <!--Color group: Forrest: example colors
similar to forrest.apache.org-->
+ <color name="breadtrail" value="#cedfef" font="#0F3660" link="#0F3660"
vlink="#0F3660" hlink="#000066"/>
+ <color name="header" value="#294563"/>
+ <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660"
hlink="#000066"/>
+ <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660"
hlink="#000066"/>
+ <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660"
hlink="#000066"/>
+ <color name="subtab-unselected" value="#4a6d8c" link="#0F3660"
vlink="#0F3660" hlink="#000066"/>
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+ <color name="navstrip" value="#4a6d8c" font="#ffffff" link="#0F3660"
vlink="#0F3660" hlink="#000066"/>
+ <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff"
vlink="#ffffff" hlink="#ffcf00"/>
+ <color name="toolbox" value="#4a6d8c"/>
+ <color name="border" value="#294563"/>
+ <color name="dialog" value="#4a6d8c"/>
+ <color name="searchbox" value="#4a6d8c" font="#000000"/>
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999"
hlink="#000066"/>
+ <color name="table" value="#7099C5"/>
+ <color name="table-cell" value="#f0f0ff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#CFDCED"/>
+ <color name="footer" value="#cedfef"/>]]>
+ </pre>
+ <p>
+ These values are used for the generated CSS files.
+ They essentially "override" the default colors defined in the chosen
theme.
+ To customize the colors of any theme,
+ use one or all color elements and change the values
+ of the particular color elements that you wish to change.
+ Note that by default, if you do not overide them means that
+ the default colors provided by the theme are being used.
+ </p>
+ <div class="warning">
+ <div class="label">fixme</div>
+ <div class="content">We need to use naming convention for the naming. To
overcome following comment:<br/>
+ Some of the element names are obscure, so comments are added to show
how
+ the "pelt" theme uses them, other themes might use these elements in
a different way or do not support them at all.<br/>
+ Tip: temporarily change the value of an element to red (#ff0000) and
see the effect.
+ </div>
+ </div>
+ <div class="note">
+ <div class="label">Comments</div>
+ <div class="content">
+ <p>
+ pelt: breadtrail: the strip at the top of the page and the second
strip under the tabs<br/>
+ pelt: header: top strip containing project and group logos<br/>
+ pelt: heading|subheading: section headings within the content<br/>
+ pelt: navstrip: the strip under the tabs which contains the
published date<br/>
+ pelt: menu: the left-hand navigation panel<br/>
+ pelt: toolbox: the selected menu item<br/>
+ pelt: searchbox: the background of the searchbox<br/>
+ pelt: border: line border around selected menu item<br/>
+ pelt: body: any remaining parts, e.g. the bottom of the page<br/>
+ pelt: footer: the second from bottom strip containing credit logos
and published date<br/>
+ pelt: feedback: the optional bottom strip containing feedback
link<br/>
+ </p>
+ </div>
+ </div>
+ </description>
+ <usage><![CDATA[<forrest:contract name="branding-theme-profiler">
+ <forrest:property
name="branding-theme-profiler-theme">pelt</forrest:property>
+ <forrest:property name="branding-theme-profiler">
+ <color name="header" value="#ff0000"/>
+ <!-- more colors -->
+ </forrest:property>
+</forrest:contract>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="branding-theme-profiler" inputFormat="xsl">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:param name="branding-theme-profiler"/>
+ <xsl:param name="branding-theme-profiler-theme"/>
+ <xsl:variable name="skin-img-dir" select="$defaultVariables/*/[EMAIL
PROTECTED]'skin-img-dir']/@value"/>
+ <xsl:variable name="header-input"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'header']/@value, '#')"/>
+ <xsl:variable name="header">
+ <xsl:if test="$header-input=''">000000</xsl:if>
+ <xsl:if test="not($header-input='')">
+ <xsl:value-of select="$header-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="body-input"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'body']/@value, '#')"/>
+ <xsl:variable name="body">
+ <xsl:if test="$body-input=''">ffffff</xsl:if>
+ <xsl:if test="not($body-input='')">
+ <xsl:value-of select="$body-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="searchbox-input"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'searchbox']/@value, '#')"/>
+ <xsl:variable name="searchbox">
+ <xsl:if test="$searchbox-input=''">000000</xsl:if>
+ <xsl:if test="not($searchbox-input='')">
+ <xsl:value-of select="$searchbox-input"/>
+ </xsl:if>
+ </xsl:variable>
+ <!--FIXME: Add default values!
+ If not it can result in
+ <link message="http://localhost/:-1
+The attribute "rx of the element ><ellipse> can not be negative"
uri="themes/images/roundcorner-t-l-5-bg003366-stroke-fg.png">
+ <referrer uri="samples/index.html"/>
+ </link>
+ Maybe like above. ;-)
+ -->
+ <xsl:variable name="tab-selected"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'tab-selected']/@value, '#')"/>
+ <xsl:variable name="tab-unselected"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'tab-unselected']/@value, '#')"/>
+ <xsl:variable name="menu"
+ select="substring-after($branding-theme-profiler/[EMAIL
PROTECTED]'menu']/@value, '#')"/>
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part>
+/* branding-theme-profiler-theme: <xsl:value-of
select="normalize-space($branding-theme-profiler-theme)"/> */
+#header .round-top-left-small {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($searchbox)"/>-fg<xsl:value-of
select="normalize-space($searchbox)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#header .round-top-right-small {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($searchbox)"/>-fg<xsl:value-of
select="normalize-space($searchbox)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main li {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($tab-unselected)"/>-fg<xsl:value-of
select="normalize-space($tab-unselected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main li a {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($tab-unselected)"/>-fg<xsl:value-of
select="normalize-space($tab-unselected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#nav-main .current {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-r-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($tab-selected)"/>-fg<xsl:value-of
select="normalize-space($tab-selected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top right;
+}
+#nav-main .current a {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-t-l-5-bg<xsl:value-of
select="normalize-space($header)"/>-stroke<xsl:value-of
select="normalize-space($tab-selected)"/>-fg<xsl:value-of
select="normalize-space($tab-selected)"/>.png);
+ background-repeat: no-repeat;
+ background-position: top left;
+}
+#roundbottom {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-b-r-15-bg<xsl:value-of
select="normalize-space($body)"/>-stroke<xsl:value-of
select="normalize-space($menu)"/>-fg<xsl:value-of
select="normalize-space($menu)"/>.png);
+ background-repeat: no-repeat;
+ background-position: bottom right;
+}
+#roundbottomLeft {
+ background-image: url(<xsl:value-of
select="$skin-img-dir"/>/roundcorner-b-l-15-bg<xsl:value-of
select="normalize-space($body)"/>-stroke<xsl:value-of
select="normalize-space($menu)"/>-fg<xsl:value-of
select="normalize-space($menu)"/>.png);
+ background-repeat: no-repeat;
+ background-position: bottom left;
+}
+ <xsl:apply-templates select="$branding-theme-profiler/color"/>
+ </forrest:part>
+ </forrest:content>
+ </xsl:template>
+
+ <!-- ==================== main block colors ============================
-->
+ <xsl:template match="[EMAIL PROTECTED]'header']">
+#container { background-color: <xsl:value-of select="@value"/>;}
</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'tab-selected']">
+#nav-main .current { background-color: <xsl:value-of select="@value"/>;}
+#nav-main .current a:link { color: <xsl:value-of select="@link"/>; }
+#nav-main .current a:visited { color: <xsl:value-of select="@vlink"/>; }
+#nav-main .current a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'tab-unselected']">
+#nav-main li { background-color: <xsl:value-of select="@value"/> ;}
+#nav-main li a:link { color: <xsl:value-of select="@link"/>; }
+#nav-main li a:visited { color: <xsl:value-of select="@vlink"/>; }
+#nav-main li a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'subtab-selected']">
+#level2tabs { background-color: <xsl:value-of select="@value"/> ;}
+#level2tabs a:link { color: <xsl:value-of select="@link"/>; }
+#level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
+#level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+
+<!--xsl:template match="[EMAIL PROTECTED]'subtab-unselected']">
+.level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
+.datenote { background-color: <xsl:value-of select="@value"/>;}
+.level2tabstrip.unselected a:link { color: <xsl:value-of select="@link"/>; }
+.level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>;
}
+.level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template-->
+
+<xsl:template match="[EMAIL PROTECTED]'heading']">
+.heading { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'subheading']">
+.boxed { background-color: <xsl:value-of select="@value"/>;}
+.underlined_5 {border-bottom: solid 5px <xsl:value-of select="@value"/>;}
+.underlined_10 {border-bottom: solid 10px <xsl:value-of select="@value"/>;}
+table caption {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+<xsl:template match="[EMAIL PROTECTED]'feedback']">
+#feedback {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+text-align: <xsl:value-of select="@align"/>;
+}
+#feedback #feedbackto {
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'breadtrail']">
+.breadtrail {
+background: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+.breadtrail a:link { color: <xsl:value-of select="@link"/>; }
+.breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }
+.breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }
+</xsl:template>
+<!--Fix for other (old) profiles-->
+<xsl:template match="[EMAIL PROTECTED]'navstrip']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<!--has to go after the nav-strip (no 'navstrip')-->
+<xsl:template match="[EMAIL PROTECTED]'published']">
+#publishedStrip {
+color: <xsl:value-of select="@font"/>;
+background: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="[EMAIL PROTECTED]'toolbox']">
+#nav-section .menupagetitle { background-color: <xsl:value-of
select="@value"/>}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'border']">
+#leftbar { border-color: <xsl:value-of select="@value"/>;}
+#nav-section .menupagetitle { border-color: <xsl:value-of select="@value"/>;}
+#nav-section .menupageitemgroup { border-color: <xsl:value-of
select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'menu']">
+#leftbar { background-color: <xsl:value-of select="@value"/>;}
+#leftbar { color: <xsl:value-of select="@font"/>;}
+#leftbar a:link { color: <xsl:value-of select="@link"/>;}
+#leftbar a:visited { color: <xsl:value-of select="@vlink"/>;}
+#leftbar a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;}
+</xsl:template>
+<xsl:template match="[EMAIL PROTECTED]'dialog']">
+#nav-section .menupagetitle { color: <xsl:value-of select="@font"/>;}
+#nav-section .menupageitemgroup {
+background-color: <xsl:value-of select="@value"/>;
+}
+#nav-section .menupageitem {
+color: <xsl:value-of select="@font"/>;
+}
+#nav-section .menupageitem a:link { color: <xsl:value-of select="@link"/>;}
+#nav-section .menupageitem a:visited { color: <xsl:value-of
select="@vlink"/>;}
+#nav-section .menupageitem a:hover {
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@hlink"/>;
+}
+</xsl:template>
+<xsl:template match="[EMAIL PROTECTED]'menuheading']">
+#leftbar h1 {
+color: <xsl:value-of select="@font"/>;
+background-color: <xsl:value-of select="@value"/>;
+}
+</xsl:template>
+<xsl:template match="[EMAIL PROTECTED]'searchbox']">
+#header .searchbox {
+background-color: <xsl:value-of select="@value"/> ;
+color: <xsl:value-of select="@font"/>;
+}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'body']">
+body{
+background-color: <xsl:value-of select="@value"/>;
+color: <xsl:value-of select="@font"/>;
+}
+a:link { color:<xsl:value-of select="@link"/>}
+a:visited { color:<xsl:value-of select="@vlink"/>}
+a:hover { color:<xsl:value-of select="@hlink"/>}
+
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'footer']">
+#footer { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+
+<!-- ==================== other colors ============================ -->
+<xsl:template match="[EMAIL PROTECTED]'highlight']">
+.highlight { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'fixme']">
+.fixme { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'note']">
+.note { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'warning']">
+.warning { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'code']">
+.code { border-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'table']">
+.ForrestTable { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+
+<xsl:template match="[EMAIL PROTECTED]'table-cell']">
+.ForrestTable td { background-color: <xsl:value-of select="@value"/>;}
+</xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
\ No newline at end of file
Modified:
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft?rev=356374&r1=356373&r2=356374&view=diff
==============================================================================
---
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft
(original)
+++
forrest/trunk/main/template-sites/v2/src/documentation/resources/themes/common/html/nav-main-testing-foo.ft
Mon Dec 12 13:02:49 2005
@@ -27,9 +27,16 @@
format="html" name="nav-main-testing-foo" inputFormat="xsl" >
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:variable name="path" select="$defaultVariables/*/[EMAIL
PROTECTED]'path']/@value"/>
<xsl:template match="/" >
<forrest:content>
- <forrest:part> nav-main-testing-foo testing - no
@xpath</forrest:part>
+ <forrest:part> nav-main-testing-foo testing - no @xpath<br/>
+ Path: <xsl:value-of select="$path"/><br/>
+ skin-img-dir: <xsl:copy-of select="$defaultVariables/*/*"/> value:
+ <xsl:value-of select="$defaultVariables/*/[EMAIL
PROTECTED]'skin-img-dir']/@value"/>
+ <!--copy-of -->
+ </forrest:part>
</forrest:content>
</xsl:template>
</xsl:stylesheet>